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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Dec 2021 09:57:12 +0000 (10:57 +0100)
commitd14bad8c11cc9e78d36bc543930a96920751d99e
tree25e74b01a87f4fa0fa0994f1a05a7df0cecf62f6
parent1fd7029809947230e15302e9c143d5e14a9f133a
cifs: Fix crash on unload of cifs_arc4.ko

commit 51a08bdeca27988a17c87b87d8e64ffecbd2a172 upstream.

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: 71c02863246167b3d ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/smbfs_common/cifs_arc4.c