]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Fix dereference before null check warning
authorSteve French <smfrench@gmail.com>
Fri, 27 Mar 2015 00:47:02 +0000 (19:47 -0500)
committerSteve French <smfrench@gmail.com>
Wed, 1 Apr 2015 05:01:47 +0000 (00:01 -0500)
commit8e3531060556bf5e09444acd2aa5c78bce9c9f70
tree8fe7d652e19acef03d970005b791ad6ca7fcca5c
parentf3a31a2bbbfe22db0313a4e270c7ba91baa7b630
Fix dereference before null check warning

null tcon is not likely in these paths in current
code, but obviously it does clarify the code to
check for null (if at all) before derefrencing
rather than after.

Reported by Coverity (CID 1042666)

Signed-off-by: Steve French <smfrench@gmail.com>
Acked-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Acked-by: Sachin Prabhu <sprabhu@redhat.com>
fs/cifs/smb2pdu.c