mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 21:51:40 +00:00
[PATCH] gss_spkm3: fix error handling in module init
Return error and prevent from loading module when gss_mech_register() failed. Cc: Andy Adamson <andros@citi.umich.edu> Cc: J. Bruce Fields <bfields@citi.umich.edu> Acked-by: Trond Myklebust <Trond.Myklebust@netapp.com> Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
3e1fbd12c9
commit
fadfc8e930
@ -228,7 +228,7 @@ static int __init init_spkm3_module(void)
|
||||
status = gss_mech_register(&gss_spkm3_mech);
|
||||
if (status)
|
||||
printk("Failed to register spkm3 gss mechanism!\n");
|
||||
return 0;
|
||||
return status;
|
||||
}
|
||||
|
||||
static void __exit cleanup_spkm3_module(void)
|
||||
|
Loading…
Reference in New Issue
Block a user