cifs: missing null pointer check in cifs_mount
authorSteve French <stfrench@microsoft.com>
Thu, 24 Jun 2021 00:32:24 +0000 (19:32 -0500)
committerSteve French <stfrench@microsoft.com>
Thu, 24 Jun 2021 00:32:24 +0000 (19:32 -0500)
commit162004a2f7ef5c77600e364dc4e9315b0e6ca386
tree30a21e8ecf9924eb6ea592a8ff988ca40b5ddf90
parenta5628263a9f8d47d9a1548fe9d5d75ba4423a735
cifs: missing null pointer check in cifs_mount

We weren't checking if tcon is null before setting dfs path,
although we check for null tcon in an earlier assignment statement.

Addresses-Coverity: 1476411 ("Dereference after null check")
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/connect.c