]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb4c98a3bef07216b6b13426a50e57822ed524f53
tree30a21e8ecf9924eb6ea592a8ff988ca40b5ddf90
parent8b8724ce2edd78f1be9e80912ca3b0cc6bd264d7
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