]> git.baikalelectronics.ru Git - kernel.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)
commitec0618deaaf89938f4ef6eeeba694476e3449aba
tree8fe7d652e19acef03d970005b791ad6ca7fcca5c
parentc3fea068fd36ef94e04a44f97a42f6cddc391d5c
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