Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

smb: client: fix deadlock in smb2_find_smb_tcon()

Unlock cifs_tcp_ses_lock before calling cifs_put_smb_ses() to avoid such
deadlock.

Cc: stable@vger.kernel.org
Signed-off-by: Enzo Matsumiya <ematsumiya@suse.de>
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Reviewed-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>

authored by

Enzo Matsumiya and committed by
Steve French
02c41877 c3f38fa6

+1 -1
+1 -1
fs/smb/client/smb2transport.c
··· 216 216 } 217 217 tcon = smb2_find_smb_sess_tcon_unlocked(ses, tid); 218 218 if (!tcon) { 219 - cifs_put_smb_ses(ses); 220 219 spin_unlock(&cifs_tcp_ses_lock); 220 + cifs_put_smb_ses(ses); 221 221 return NULL; 222 222 } 223 223 spin_unlock(&cifs_tcp_ses_lock);