cifs: protect session status check in smb2_reconnect()
authorPaulo Alcantara <pc@manguebit.com>
Thu, 27 Apr 2023 19:07:38 +0000 (16:07 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 May 2023 14:03:41 +0000 (23:03 +0900)
commite4a37e9060095e9dc65294219a5cc4c24f890204
tree7f4ca185c46dfbcaa285a6a1aac5411223165e77
parent64d62ac6d6514cba1305bd08e271ec1843bdd612
cifs: protect session status check in smb2_reconnect()

commit 5bff9f741af60b143a5ae73417a8ec47fd5ff2f4 upstream.

Use @ses->ses_lock to protect access of @ses->ses_status.

Cc: stable@vger.kernel.org
Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/smb2pdu.c