]> git.karo-electronics.de Git - karo-tx-linux.git/commit
SUNRPC: Fix up an error return value in gss_import_sec_context_kerberos()
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 18 Dec 2009 21:28:05 +0000 (16:28 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 18 Jan 2010 18:19:19 +0000 (10:19 -0800)
commite64b13f62782f5e495c085e1c06e48224545617f
tree2328f4c980365a3b26e97e3b71f104da8c38fb8e
parenteb0b93d6e280e51b1056be57ea92bb6ebec01ad4
SUNRPC: Fix up an error return value in gss_import_sec_context_kerberos()

commit 14ace024b1e16d2bb9445c8387494fbbd820a738 upstream.

If the context allocation fails, the function currently returns a random
error code, since the variable 'p' still points to a valid memory location.

Ensure that it returns ENOMEM...

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/sunrpc/auth_gss/gss_krb5_mech.c