[PATCH] cifs: Silence uninitialized variable warning

Steve French smfrench at gmail.com
Tue Jun 19 21:32:43 UTC 2018

merged into cifs-2.6.git for-next

On Tue, Jun 19, 2018 at 8:12 AM, Paulo Alcantara <paulo at paulo.ac> wrote:
> Dan Carpenter <dan.carpenter at oracle.com> writes:
>> This is not really a runtime issue but Smatch complains that:
>>     fs/cifs/smb2ops.c:1740 smb2_query_symlink()
>>     error: uninitialized symbol 'resp_buftype'.
>> The warning is right that it can be uninitialized...  Also "err_buf"
>> would be NULL at this point and we're not supposed to pass NULLs to
>> free_rsp_buf() or it might trigger some extra output if we turn on
>> debugging.
>> Signed-off-by: Dan Carpenter <dan.carpenter at oracle.com>
> Reviewed-by: Paulo Alcantara <palcantara at suse.de>
> Thanks
> Paulo
> --
> To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
> the body of a message to majordomo at vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the samba-technical mailing list