return error and privent from loading module when gss_mech_register()
failed.
Cc: Andy Adamson <[email protected]>
Cc: J. Bruce Fields <[email protected]>
Cc: Trond Myklebust <[email protected]>
Signed-off-by: Akinobu Mita <[email protected]>
net/sunrpc/auth_gss/gss_spkm3_mech.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: work-fault-inject/net/sunrpc/auth_gss/gss_spkm3_mech.c
===================================================================
--- work-fault-inject.orig/net/sunrpc/auth_gss/gss_spkm3_mech.c
+++ work-fault-inject/net/sunrpc/auth_gss/gss_spkm3_mech.c
@@ -288,7 +288,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)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]