Skip to content

Commit 51a08bd

Browse files
vwaxsmfrench
authored andcommitted
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: 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]>
1 parent 0fcfb00 commit 51a08bd

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

fs/smbfs_common/cifs_arc4.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,3 @@ void cifs_arc4_crypt(struct arc4_ctx *ctx, u8 *out, const u8 *in, unsigned int l
7272
ctx->y = y;
7373
}
7474
EXPORT_SYMBOL_GPL(cifs_arc4_crypt);
75-
76-
static int __init
77-
init_smbfs_common(void)
78-
{
79-
return 0;
80-
}
81-
static void __init
82-
exit_smbfs_common(void)
83-
{
84-
}
85-
86-
module_init(init_smbfs_common)
87-
module_exit(exit_smbfs_common)

0 commit comments

Comments
 (0)