Skip to content

Commit

Permalink
cifs: Fix crash on unload of cifs_arc4.ko
Browse files Browse the repository at this point in the history
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: 71c0286 ("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]>
  • Loading branch information
vwax authored and Steve French committed Dec 8, 2021
1 parent 0fcfb00 commit 51a08bd
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions fs/smbfs_common/cifs_arc4.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 51a08bd

Please sign in to comment.