Messages in this thread Patch in this message | | | Date | Sun, 29 Oct 2006 03:54:34 +0900 | From | Akinobu Mita <> | 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@citi.umich.edu> Cc: J. Bruce Fields <bfields@citi.umich.edu> Cc: Trond Myklebust <Trond.Myklebust@netapp.com> Signed-off-by: Akinobu Mita <akinobu.mita@gmail.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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |