Skip to contentSkip to conversation

gss_spkm3: fix error handling in module init

PATCH New Akinobu Mita 1 participant 1 message Oct 28, 2006

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gss_spkm3: fix error handling in module init

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]>
 net/sunrpc/auth_gss/gss_spkm3_mech.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/sunrpc/auth_gss/gss_spkm3_mech.c +1 -1
Index: 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)