cifs: prevent infinite recursion in CIFSGetDFSRefer()
authorPaulo Alcantara <pc@manguebit.com>
Wed, 29 Mar 2023 20:14:22 +0000 (17:14 -0300)
committerSteve French <stfrench@microsoft.com>
Thu, 30 Mar 2023 22:56:27 +0000 (17:56 -0500)
commit09ba47b44d26b475bbdf9c80db9e0193d2b58956
tree68e5a933cced5c5903f5ea827c81e6aff1af2d9e
parent6cc041e90c178955219dcee4030bd5423f800f10
cifs: prevent infinite recursion in CIFSGetDFSRefer()

We can't call smb_init() in CIFSGetDFSRefer() as cifs_reconnect_tcon()
may end up calling CIFSGetDFSRefer() again to get new DFS referrals
and thus causing an infinite recursion.

Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Cc: stable@vger.kernel.org # 6.2
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifssmb.c