cifs: protect access of TCP_Server_Info::{dstaddr,hostname}
authorPaulo Alcantara <pc@cjr.nz>
Thu, 29 Dec 2022 21:43:46 +0000 (18:43 -0300)
committerSteve French <stfrench@microsoft.com>
Wed, 4 Jan 2023 15:06:53 +0000 (09:06 -0600)
commit39a154fc2d172a3a5865e5a9fa2a2983eb7a99ac
tree54b677b6a19e65ea48e80af840c31d45a34f4364
parent775e44d6d86dca400d614cbda5dab4def4951fe7
cifs: protect access of TCP_Server_Info::{dstaddr,hostname}

Use the appropriate locks to protect access of hostname and dstaddr
fields in cifs_tree_connect() as they might get changed by other
tasks.

Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Reviewed-by: Enzo Matsumiya <ematsumiya@suse.de>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/dfs.c
fs/cifs/misc.c