diff options
author | 2024-04-25 12:49:50 -0500 | |
---|---|---|
committer | 2024-04-25 12:49:50 -0500 | |
commit | 8861fd5180476f45f9e8853db154600469a0284f (patch) | |
tree | 42cbc51ff23472582504a63f76056c966a997dae /fs/select.c | |
parent | smb3: missing lock when picking channel (diff) | |
download | linux-8861fd5180476f45f9e8853db154600469a0284f.tar.gz linux-8861fd5180476f45f9e8853db154600469a0284f.tar.bz2 linux-8861fd5180476f45f9e8853db154600469a0284f.zip |
smb3: fix lock ordering potential deadlock in cifs_sync_mid_result
Coverity spotted that the cifs_sync_mid_result function could deadlock
"Thread deadlock (ORDER_REVERSAL) lock_order: Calling spin_lock acquires
lock TCP_Server_Info.srv_lock while holding lock TCP_Server_Info.mid_lock"
Addresses-Coverity: 1590401 ("Thread deadlock (ORDER_REVERSAL)")
Cc: stable@vger.kernel.org
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/select.c')
0 files changed, 0 insertions, 0 deletions