aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/svcauth_unix.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2011-03-09 22:40:30 -0500
committerJ. Bruce Fields <bfields@redhat.com>2011-03-09 22:40:30 -0500
commit352b5d13c0684ba8cd103aa20cb74f105334562a (patch)
treea54ffeec78ed69035c4c99faa61e472230d14076 /net/sunrpc/svcauth_unix.c
parent0997b173609b9229ece28941c118a2a9b278796e (diff)
svcrpc: fix bad argument in unix_domain_find
"After merging the nfsd tree, today's linux-next build (powerpc ppc64_defconfig) produced this warning: net/sunrpc/svcauth_unix.c: In function 'unix_domain_find': net/sunrpc/svcauth_unix.c:58: warning: passing argument 1 of +'svcauth_unix_domain_release' from incompatible pointer type net/sunrpc/svcauth_unix.c:41: note: expected 'struct auth_domain *' but argument +is of type 'struct unix_domain *' Introduced by commit 8b3e07ac908d ("svcrpc: fix rare race on unix_domain creation")." Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc/svcauth_unix.c')
-rw-r--r--net/sunrpc/svcauth_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/svcauth_unix.c b/net/sunrpc/svcauth_unix.c
index d100bf2b4e81..c8e10216c113 100644
--- a/net/sunrpc/svcauth_unix.c
+++ b/net/sunrpc/svcauth_unix.c
@@ -55,7 +55,7 @@ struct auth_domain *unix_domain_find(char *name)
55 while(1) { 55 while(1) {
56 if (rv) { 56 if (rv) {
57 if (new && rv != &new->h) 57 if (new && rv != &new->h)
58 svcauth_unix_domain_release(new); 58 svcauth_unix_domain_release(&new->h);
59 59
60 if (rv->flavour != &svcauth_unix) { 60 if (rv->flavour != &svcauth_unix) {
61 auth_domain_put(rv); 61 auth_domain_put(rv);