mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
Fix warning on uninitialized buftype
Pointed out by coverity analyzer. resp_buftype is not initialized in one path which can rarely log a spurious warning (buf is null so there will not be a problem with freeing data, but if buf_type were randomly set to wrong value could log a warning) Reported by Coverity (CID 1269144) Signed-off-by: Steve French <smfrench@gmail.com> Acked-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com> Acked-by: Sachin Prabhu <sprabhu@redhat.com> Reviewed-by: Jeff Layton <jlayton@poochiereds.net>
This commit is contained in:
parent
2bd50fb3d4
commit
75fdfc849a
1 changed files with 1 additions and 1 deletions
|
@ -2114,7 +2114,7 @@ SMB2_query_directory(const unsigned int xid, struct cifs_tcon *tcon,
|
|||
struct kvec iov[2];
|
||||
int rc = 0;
|
||||
int len;
|
||||
int resp_buftype;
|
||||
int resp_buftype = CIFS_NO_BUFFER;
|
||||
unsigned char *bufptr;
|
||||
struct TCP_Server_Info *server;
|
||||
struct cifs_ses *ses = tcon->ses;
|
||||
|
|
Loading…
Reference in a new issue