aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/svcauth_unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc/svcauth_unix.c')
-rw-r--r--net/sunrpc/svcauth_unix.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/net/sunrpc/svcauth_unix.c b/net/sunrpc/svcauth_unix.c
index 31b99c599e7e..49e39ff22910 100644
--- a/net/sunrpc/svcauth_unix.c
+++ b/net/sunrpc/svcauth_unix.c
@@ -472,10 +472,13 @@ ip_map_cached_put(struct svc_rqst *rqstp, struct ip_map *ipm)
472} 472}
473 473
474void 474void
475svcauth_unix_info_release(void *info) 475svcauth_unix_info_release(struct svc_xprt *xpt)
476{ 476{
477 struct ip_map *ipm = info; 477 struct ip_map *ipm;
478 cache_put(&ipm->h, &ip_map_cache); 478
479 ipm = xpt->xpt_auth_cache;
480 if (ipm != NULL)
481 cache_put(&ipm->h, &ip_map_cache);
479} 482}
480 483
481/**************************************************************************** 484/****************************************************************************