aboutsummaryrefslogtreecommitdiffstats
path: root/samples/hidraw/ssh:/git@git.zx2c4.com/git:
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-10-10 00:02:20 +0200
committerSteve French <stfrench@microsoft.com>2018-10-23 21:16:05 -0500
commitf70556c8cae976e50ba9c27dd4c1a86b57efc17d (patch)
tree0ca911e66f6d752b376539bf07dd0db782450019 /samples/hidraw/ssh:/git@git.zx2c4.com/git:
parentcifs: add IOCTL for QUERY_INFO passthrough to userspace (diff)
smb2: fix uninitialized variable bug in smb2_ioctl_query_info
There is a potential execution path in which variable *resp_buftype* is passed as an argument to function free_rsp_buf(), in which it is used in a comparison without being properly initialized previously. Fix this by initializing variable *resp_buftype* to CIFS_NO_BUFFER in order to avoid unpredictable or unintended results. Addresses-Coverity-ID: 1473971 ("Uninitialized scalar variable") Fixes: c5d25bdb2967 ("cifs: add IOCTL for QUERY_INFO passthrough to userspace") Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Steve French <stfrench@microsoft.com> Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Diffstat (limited to 'samples/hidraw/ssh:/git@git.zx2c4.com/git:')
0 files changed, 0 insertions, 0 deletions