gss_spkm3: fix error handling in module init
Subsystems (3)
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]>
Signed-off-by Akinobu Mita <[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
@@ -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)