]> git.karo-electronics.de Git - karo-tx-linux.git/commit
nfsd: fix possible oops on re-insertion of rpcsec_gss modules
authorJ. Bruce Fields <bfields@citi.umich.edu>
Tue, 24 Jul 2007 01:43:52 +0000 (18:43 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Aug 2007 21:27:42 +0000 (14:27 -0700)
commitab2a4f10820d87685caad4da016b6b8b3953bb8e
tree2467a2dc7fbe1d69dad51305509eb0d0e156c2d7
parent5823d303986dcad51048d94a523216dd65276424
nfsd: fix possible oops on re-insertion of rpcsec_gss modules

The handling of the re-registration case is wrong here; the "test" that was
returned from auth_domain_lookup will not be used again, so that reference
should be put.  And auth_domain_lookup never did anything with "new" in
this case, so we should just clean it up ourself.

Thanks to Akinobu Mita for bug report, analysis, and testing.

Cc: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>
Cc: Neil Brown <neilb@suse.de>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/sunrpc/auth_gss/svcauth_gss.c