]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: Fix crash on unload of cifs_arc4.ko
authorVincent Whitchurch <vincent.whitchurch@axis.com>
Tue, 7 Dec 2021 11:54:19 +0000 (12:54 +0100)
committerSteve French <stfrench@microsoft.com>
Wed, 8 Dec 2021 04:38:03 +0000 (22:38 -0600)
commitf2f80026ff907a13c32706cf8963ba8fde1441aa
tree19bf0ad3dc7cb15e3bb208a142bcbe7b1119fa8d
parenta2200a1a728925ec7975c22ebe5470181f223449
cifs: Fix crash on unload of cifs_arc4.ko

The exit function is wrongly placed in the __init section and this leads
to a crash when the module is unloaded.  Just remove both the init and
exit functions since this module does not need them.

Fixes: 1a2af8a68a870dc56 ("cifs: fork arc4 and create a separate module...")
Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
Acked-by: Ronnie Sahlberg <lsahlber@redhat.com>
Acked-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Cc: stable@vger.kernel.org # 5.15
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smbfs_common/cifs_arc4.c