]> git.baikalelectronics.ru Git - kernel.git/commit
smb3: check for null tcon
authorSteve French <stfrench@microsoft.com>
Tue, 24 May 2022 01:42:03 +0000 (20:42 -0500)
committerSteve French <stfrench@microsoft.com>
Tue, 24 May 2022 01:50:38 +0000 (20:50 -0500)
commit52e26eb6ade0721a1e6b103c037d78a810e9d09e
tree24bc520471a7fc5bd7d1648f6c6b1411a8effdaf
parent20e8f86fb33e574a6b5d6ddb437a95490584f341
smb3: check for null tcon

Although unlikely to be null, it is confusing to use a pointer
before checking for it to be null so move the use down after
null check.

Addresses-Coverity: 1517586 ("Null pointer dereferences  (REVERSE_INULL)")
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2ops.c