SUNRPC: Fix the return value in gss_import_sec_context()
commit8ffe94786b66c4ea4298c5ab770de2e96993c9e3
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 18 Dec 2009 21:28:12 +0000 (18 16:28 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 18 Jan 2010 18:19:20 +0000 (18 10:19 -0800)
tree4bc8093644678d5c37f9e20ca2bb4cd1c2359391
parente64b13f62782f5e495c085e1c06e48224545617f
SUNRPC: Fix the return value in gss_import_sec_context()

commit b891e4a05ef6beac85465295a032431577c66b16 upstream.

If the context allocation fails, it will return GSS_S_FAILURE, which is
neither a valid error code, nor is it even negative.

Return ENOMEM instead...

Reported-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/sunrpc/auth_gss/gss_mech_switch.c