summaryrefslogtreecommitdiffstats
path: root/net/sunrpc
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2019-05-09 11:00:07 -0400
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2019-05-09 16:27:24 -0400
commit5940d1cf9f42f67e9cc3f7df9eda39f5888d6e9e (patch)
tree9e3f19a3797babbe16a3523f671e1a7363dbf694 /net/sunrpc
parentc260121a97a3e4df6536edbc2f26e166eff370ce (diff)
downloadlinux-5940d1cf9f42f67e9cc3f7df9eda39f5888d6e9e.tar.gz
linux-5940d1cf9f42f67e9cc3f7df9eda39f5888d6e9e.tar.bz2
linux-5940d1cf9f42f67e9cc3f7df9eda39f5888d6e9e.zip
SUNRPC: Rebalance a kref in auth_gss.c
Restore the kref_get that matches the gss_put_auth(gss_msg->auth) done by gss_release_msg(). Fixes: ac83228a7101 ("SUNRPC: Use namespace of listening daemon ...") Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net/sunrpc')
-rw-r--r--net/sunrpc/auth_gss/auth_gss.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sunrpc/auth_gss/auth_gss.c b/net/sunrpc/auth_gss/auth_gss.c
index 06fe17c2aea1..4ce42c62458e 100644
--- a/net/sunrpc/auth_gss/auth_gss.c
+++ b/net/sunrpc/auth_gss/auth_gss.c
@@ -551,6 +551,7 @@ gss_alloc_msg(struct gss_auth *gss_auth,
refcount_set(&gss_msg->count, 1);
gss_msg->uid = uid;
gss_msg->auth = gss_auth;
+ kref_get(&gss_auth->kref);
if (service_name) {
gss_msg->service_name = kstrdup_const(service_name, GFP_NOFS);
if (!gss_msg->service_name) {