]> Git Repo - J-linux.git/commitdiff
cifs: Fix crash on unload of cifs_arc4.ko
authorVincent Whitchurch <[email protected]>
Tue, 7 Dec 2021 11:54:19 +0000 (12:54 +0100)
committerSteve French <[email protected]>
Wed, 8 Dec 2021 04:38:03 +0000 (22:38 -0600)
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 <[email protected]>
Acked-by: Ronnie Sahlberg <[email protected]>
Acked-by: Paulo Alcantara (SUSE) <[email protected]>
Cc: [email protected] # 5.15
Signed-off-by: Steve French <[email protected]>
fs/smbfs_common/cifs_arc4.c

index 85ba15a60b13b36887e0bb3901f8125eb1f6b97b..043e4cb839fa235f7c2e05fac3fe558e82e9d4f2 100644 (file)
@@ -72,16 +72,3 @@ void cifs_arc4_crypt(struct arc4_ctx *ctx, u8 *out, const u8 *in, unsigned int l
        ctx->y = y;
 }
 EXPORT_SYMBOL_GPL(cifs_arc4_crypt);
-
-static int __init
-init_smbfs_common(void)
-{
-       return 0;
-}
-static void __init
-exit_smbfs_common(void)
-{
-}
-
-module_init(init_smbfs_common)
-module_exit(exit_smbfs_common)
This page took 0.049067 seconds and 4 git commands to generate.