[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20061028185434.GL9973@localhost>
Date: Sun, 29 Oct 2006 03:54:34 +0900
From: Akinobu Mita <akinobu.mita@...il.com>
To: linux-kernel@...r.kernel.org
Cc: Andy Adamson <andros@...i.umich.edu>,
"J. Bruce Fields" <bfields@...i.umich.edu>,
Trond Myklebust <Trond.Myklebust@...app.com>
Subject: [PATCH] gss_spkm3: fix error handling in module init
return error and privent from loading module when gss_mech_register()
failed.
Cc: Andy Adamson <andros@...i.umich.edu>
Cc: J. Bruce Fields <bfields@...i.umich.edu>
Cc: Trond Myklebust <Trond.Myklebust@...app.com>
Signed-off-by: Akinobu Mita <akinobu.mita@...il.com>
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 majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists