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)
commitbbdf6cf56c88845fb0b713cbf5c6623c53fe40d8
tree24bc520471a7fc5bd7d1648f6c6b1411a8effdaf
parent93ed91c020aa4f021600a633f1f87790a5e50b91
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