diff options
Diffstat (limited to 'net/sunrpc/svcauth.c')
| -rw-r--r-- | net/sunrpc/svcauth.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/sunrpc/svcauth.c b/net/sunrpc/svcauth.c index 8f2320aded5c..ee9bb1522d5e 100644 --- a/net/sunrpc/svcauth.c +++ b/net/sunrpc/svcauth.c | |||
| @@ -126,6 +126,7 @@ void auth_domain_put(struct auth_domain *dom) | |||
| 126 | if (atomic_dec_and_lock(&dom->ref.refcount, &auth_domain_lock)) { | 126 | if (atomic_dec_and_lock(&dom->ref.refcount, &auth_domain_lock)) { |
| 127 | hlist_del(&dom->hash); | 127 | hlist_del(&dom->hash); |
| 128 | dom->flavour->domain_release(dom); | 128 | dom->flavour->domain_release(dom); |
| 129 | spin_unlock(&auth_domain_lock); | ||
| 129 | } | 130 | } |
| 130 | } | 131 | } |
| 131 | 132 | ||
| @@ -147,10 +148,8 @@ auth_domain_lookup(char *name, struct auth_domain *new) | |||
| 147 | return hp; | 148 | return hp; |
| 148 | } | 149 | } |
| 149 | } | 150 | } |
| 150 | if (new) { | 151 | if (new) |
| 151 | hlist_add_head(&new->hash, head); | 152 | hlist_add_head(&new->hash, head); |
| 152 | kref_get(&new->ref); | ||
| 153 | } | ||
| 154 | spin_unlock(&auth_domain_lock); | 153 | spin_unlock(&auth_domain_lock); |
| 155 | return new; | 154 | return new; |
| 156 | } | 155 | } |
