]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cifs: fix missing unload_nls() in smb2_reconnect()
authorPaulo Alcantara <pc@manguebit.com>
Fri, 24 Mar 2023 19:05:19 +0000 (16:05 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Apr 2023 10:10:37 +0000 (12:10 +0200)
commit2b4830eefc41b06d4943ae860abf24ec3901d89f
tree0375c8bbf08948fa4b4a3d8a3212b29bc2bf8b6f
parente0169d62efce979eb7dbda3101eea180b69ca793
cifs: fix missing unload_nls() in smb2_reconnect()

[ Upstream commit c24bb1a87dc3f2d77d410eaac2c6a295961bf50e ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/cifs/smb2pdu.c