cifs: use correct lock type in cifs_reconnect()
authorPaulo Alcantara <pc@cjr.nz>
Thu, 21 Apr 2022 00:05:46 +0000 (21:05 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Apr 2022 12:41:14 +0000 (14:41 +0200)
commita6b48566dcceef635179d2c04c689da3d8e7191a
treea6ae06920d370d711196c9177dcc3b47bab208d7
parent8d59b6686ce16fee375ef1c1fe5aaa0ced74902c
cifs: use correct lock type in cifs_reconnect()

commit cd70a3e8988a999c42d307d2616a5e7b6a33c7c8 upstream.

TCP_Server_Info::origin_fullpath and TCP_Server_Info::leaf_fullpath
are protected by refpath_lock mutex and not cifs_tcp_ses_lock
spinlock.

Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Cc: stable@vger.kernel.org
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/connect.c