From: J. Bruce Fields Allow mechanisms to return more varied errors on the context creation downcall. Signed-off-by: J. Bruce Fields Signed-off-by: Neil Brown Signed-off-by: Andrew Morton --- net/sunrpc/auth_gss/svcauth_gss.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) diff -puN net/sunrpc/auth_gss/svcauth_gss.c~svcrpc-gss-svc-context-creation-error-handling net/sunrpc/auth_gss/svcauth_gss.c --- devel/net/sunrpc/auth_gss/svcauth_gss.c~svcrpc-gss-svc-context-creation-error-handling 2006-01-12 19:54:17.000000000 -0800 +++ devel-akpm/net/sunrpc/auth_gss/svcauth_gss.c 2006-01-12 19:54:17.000000000 -0800 @@ -420,7 +420,8 @@ static int rsc_parse(struct cache_detail gss_mech_put(gm); goto out; } - if (gss_import_sec_context(buf, len, gm, &rsci.mechctx)) { + status = gss_import_sec_context(buf, len, gm, &rsci.mechctx); + if (status) { gss_mech_put(gm); goto out; } _