]> 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)
commit30a6c58378133e7f7ae14f5bb2e92ce1289f9ac2
tree8fe7d652e19acef03d970005b791ad6ca7fcca5c
parentd01b5853ff2e5abcec0976a7033629f840c5f976
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