diff options
| author | Henrique Carvalho <henrique.carvalho@suse.com> | 2026-01-19 14:54:45 -0300 |
|---|---|---|
| committer | Steve French <stfrench@microsoft.com> | 2026-02-08 17:07:43 -0600 |
| commit | e97dcac3dc0bd37e4b56aaa6874b572a3a461102 (patch) | |
| tree | df01aff7a3a7751593c0f69d5ec1203f9b4605f8 | |
| parent | ec306600d5ba7148c9dbf8f5a8f1f5c1a044a241 (diff) | |
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>
| -rw-r--r-- | fs/smb/client/connect.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/smb/client/connect.c b/fs/smb/client/connect.c index ce620503e9f7..60c76375f0f5 100644 --- a/fs/smb/client/connect.c +++ b/fs/smb/client/connect.c @@ -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); |
