sunrpc: Make xprt auth cache release work with the xprt
[deliverable/linux.git] / net / sunrpc / svcauth_unix.c
index 31b99c599e7e58376d989da0b5b6ee1f7469bb3d..49e39ff22910ec19bbe6087654f19bf00c04a7c5 100644 (file)
@@ -472,10 +472,13 @@ ip_map_cached_put(struct svc_rqst *rqstp, struct ip_map *ipm)
 }
 
 void
-svcauth_unix_info_release(void *info)
+svcauth_unix_info_release(struct svc_xprt *xpt)
 {
-       struct ip_map *ipm = info;
-       cache_put(&ipm->h, &ip_map_cache);
+       struct ip_map *ipm;
+
+       ipm = xpt->xpt_auth_cache;
+       if (ipm != NULL)
+               cache_put(&ipm->h, &ip_map_cache);
 }
 
 /****************************************************************************
This page took 0.024216 seconds and 5 git commands to generate.