diff options
author | 2023-06-26 11:42:56 +0800 | |
---|---|---|
committer | 2023-06-28 11:47:43 -0500 | |
commit | 99f280700b4cc02d5f141b8d15f8e9fad0418f65 (patch) | |
tree | 84f9cfb541e42f7ef8f5400dd7fbac801e449dad /lib/string_helpers.c | |
parent | cifs: do all necessary checks for credits within or before locking (diff) | |
download | wireguard-linux-99f280700b4cc02d5f141b8d15f8e9fad0418f65.tar.xz wireguard-linux-99f280700b4cc02d5f141b8d15f8e9fad0418f65.zip |
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: Winston Wen <wentao@uniontech.com>
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions