smb: client: add proper locking around ses->iface_last_update

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>
This commit is contained in:
Henrique Carvalho
2026-01-19 14:54:45 -03:00
committed by Steve French
parent ec306600d5
commit e97dcac3dc
+2
View File
@@ -4270,7 +4270,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);