]> git.baikalelectronics.ru Git - 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)
committerSteve French <stfrench@microsoft.com>
Fri, 9 Jul 2021 17:57:05 +0000 (12:57 -0500)
commit8be3878c7c317a772286bbb21f32a2fe5e6969cc
tree420e70c907f8cf18e5accc136e4e6eafe5c869bb
parent1cad9bfb715ab3059288d08b79e85e0a0dfe26a4
cifs: prevent NULL deref in cifs_compose_mount_options()

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>
fs/cifs/cifs_dfs_ref.c