diff options
Diffstat (limited to 'net/sunrpc/auth_gss')
-rw-r--r-- | net/sunrpc/auth_gss/svcauth_gss.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/net/sunrpc/auth_gss/svcauth_gss.c b/net/sunrpc/auth_gss/svcauth_gss.c index 490697542fc2..dc2f41e9f577 100644 --- a/net/sunrpc/auth_gss/svcauth_gss.c +++ b/net/sunrpc/auth_gss/svcauth_gss.c | |||
@@ -769,11 +769,12 @@ svcauth_gss_register_pseudoflavor(u32 pseudoflavor, char * name) | |||
769 | new->h.flavour = &svcauthops_gss; | 769 | new->h.flavour = &svcauthops_gss; |
770 | new->pseudoflavor = pseudoflavor; | 770 | new->pseudoflavor = pseudoflavor; |
771 | 771 | ||
772 | stat = 0; | ||
772 | test = auth_domain_lookup(name, &new->h); | 773 | test = auth_domain_lookup(name, &new->h); |
773 | if (test != &new->h) { /* XXX Duplicate registration? */ | 774 | if (test != &new->h) { /* Duplicate registration */ |
774 | auth_domain_put(&new->h); | 775 | auth_domain_put(test); |
775 | /* dangling ref-count... */ | 776 | kfree(new->h.name); |
776 | goto out; | 777 | goto out_free_dom; |
777 | } | 778 | } |
778 | return 0; | 779 | return 0; |
779 | 780 | ||