summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorHenrique Carvalho <henrique.carvalho@suse.com>2026-01-19 14:54:45 -0300
committerSasha Levin <sashal@kernel.org>2026-03-04 07:20:32 -0500
commit048b58edc57dcd28b14757f00c554f108562e111 (patch)
tree8efffcfc780b28eb3f84e113bc7e896871e5a0ec /fs
parent8b5dcfa97bf30121c91766fd22505789ec924b51 (diff)
smb: client: add proper locking around ses->iface_last_update
[ Upstream commit e97dcac3dc0bd37e4b56aaa6874b572a3a461102 ] There is a missing ses->iface_lock in cifs_setup_session, around ses->iface_last_update. Signed-off-by: Henrique Carvalho <henrique.carvalho@suse.com> Signed-off-by: Steve French <stfrench@microsoft.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/smb/client/connect.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/smb/client/connect.c b/fs/smb/client/connect.c
index 86c89917f18e..59220ebd6ecc 100644
--- a/fs/smb/client/connect.c
+++ b/fs/smb/client/connect.c
@@ -4065,7 +4065,9 @@ cifs_setup_session(const unsigned int xid, struct cifs_ses *ses,
ses->ses_status = SES_IN_SETUP;
/* force iface_list refresh */
+ spin_lock(&ses->iface_lock);
ses->iface_last_update = 0;
+ spin_unlock(&ses->iface_lock);
}
spin_unlock(&ses->ses_lock);