]> git.baikalelectronics.ru Git - kernel.git/commit
Fix warning on uninitialized buftype
authorSteve French <smfrench@gmail.com>
Wed, 25 Mar 2015 23:51:57 +0000 (18:51 -0500)
committerSteve French <smfrench@gmail.com>
Wed, 1 Apr 2015 05:01:46 +0000 (00:01 -0500)
commit1e8829fcf27eb32ba6f9c2077c56e23d35e2f59b
tree1d8368ae3deaa9d577ce307050fd7e5f8917eefd
parent4528bec5726f4d76039a09a6a330f67939962cb0
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>
fs/cifs/smb2pdu.c