cifs: fix missing unload_nls() in smb2_reconnect()
authorPaulo Alcantara <pc@manguebit.com>
Fri, 24 Mar 2023 19:05:19 +0000 (16:05 -0300)
committerSteve French <stfrench@microsoft.com>
Fri, 24 Mar 2023 19:37:05 +0000 (14:37 -0500)
commitc24bb1a87dc3f2d77d410eaac2c6a295961bf50e
treef5459fce89e0fe496a943304ca611d6720837db3
parentbc962159e8e326af634a506508034a375bf2b858
cifs: fix missing unload_nls() in smb2_reconnect()

Make sure to unload_nls() @nls_codepage if we no longer need it.

Fixes: bc962159e8e3 ("cifs: avoid race conditions with parallel reconnects")
Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Cc: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2pdu.c