mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-04-29 12:28:27 +02:00
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:
committed by
Steve French
parent
ec306600d5
commit
e97dcac3dc
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user