Skip to content
Commit 99f28070 authored by Winston Wen's avatar Winston Wen Committed by Steve French
Browse files

cifs: fix session state check in reconnect to avoid use-after-free issue



Don't collect exiting session in smb2_reconnect_server(), because it
will be released soon.

Note that the exiting session will stay in server->smb_ses_list until
it complete the cifs_free_ipc() and logoff() and then delete itself
from the list.

Signed-off-by: default avatarWinston Wen <wentao@uniontech.com>
Reviewed-by: default avatarShyam Prasad N <sprasad@microsoft.com>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent 326a8d04
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment