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)
commit03313d1c3a2f086bb60920607ab79ac8f8578306
tree420e70c907f8cf18e5accc136e4e6eafe5c869bb
parent53d31a3ffd60176af24f2f77fb3a7e567134eb90
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