]> 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)
commit1a453667896f53e5d758d69d245be081f40fd8e4
tree30a21e8ecf9924eb6ea592a8ff988ca40b5ddf90
parent3b02c4e3267814f180492ba44e50a1a541817e76
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