]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
cifs: prevent NULL deref in cifs_compose_mount_options()
authorPaulo Alcantara <pc@cjr.nz>
Fri, 2 Jul 2021 14:50:54 +0000 (11:50 -0300)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 20 Sep 2021 13:41:04 +0000 (15:41 +0200)
commit7921adb90a2e4a3198ba0e5579a80ab9b449673f
tree5fe5e8d74b0f7ae705c2ddb36cb9c81ee900a7fd
parentc5253307b28b50a1ca007abcfaf51a2fc9d47968
cifs: prevent NULL deref in cifs_compose_mount_options()

BugLink: https://bugs.launchpad.net/bugs/1940139
[ Upstream commit 03313d1c3a2f086bb60920607ab79ac8f8578306 ]

The optional @ref parameter might contain an NULL node_name, so
prevent dereferencing it in cifs_compose_mount_options().

Addresses-Coverity: 1476408 ("Explicit null dereferenced")
Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
fs/cifs/cifs_dfs_ref.c