[PATCH] kNFSd: gss_svc locking and refcounting fixes
commit1e81dda97a2aec1d352bea47ee37e3a43b640bba
authorNeil Brown <neilb@cse.unsw.edu.au>
Sat, 5 Jun 2004 03:54:12 +0000 (4 20:54 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 5 Jun 2004 03:54:12 +0000 (4 20:54 -0700)
tree240e2638cfa8f05037ef0ade8e6c6085bb9d5b4c
parentff0608b56d0a4154cf4a0b077e3eeb81c8337515
[PATCH] kNFSd: gss_svc locking and refcounting fixes

The server sunrpc code should take a reference on the relevant module before
calling any authentication code.

Also, it looks to me like the table of authops needs some locking.

Finally, gss_svc_init wasn't checking the status of svc_auth_register, and
gss_svc_shutdown wasn't calling svc_auth_unregister.

From: "J. Bruce Fields" <bfields@fieldses.org>
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/sunrpc/svcauth.h
net/sunrpc/auth_gss/svcauth_gss.c
net/sunrpc/svcauth.c
net/sunrpc/svcauth_unix.c