Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 75fdfc84 authored by Steve French's avatar Steve French
Browse files

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: default avatarSteve French <smfrench@gmail.com>
Acked-by: default avatarShirish Pargaonkar <shirishpargaonkar@gmail.com>
Acked-by: default avatarSachin Prabhu <sprabhu@redhat.com>
Reviewed-by: default avatarJeff Layton <jlayton@poochiereds.net>
parent 2bd50fb3
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2114,7 +2114,7 @@ SMB2_query_directory(const unsigned int xid, struct cifs_tcon *tcon,
	struct kvec iov[2];
	struct kvec iov[2];
	int rc = 0;
	int rc = 0;
	int len;
	int len;
	int resp_buftype;
	int resp_buftype = CIFS_NO_BUFFER;
	unsigned char *bufptr;
	unsigned char *bufptr;
	struct TCP_Server_Info *server;
	struct TCP_Server_Info *server;
	struct cifs_ses *ses = tcon->ses;
	struct cifs_ses *ses = tcon->ses;