sunrpc: Make xprt auth cache release work with the xprt
[deliverable/linux.git] / net / sunrpc / svc_xprt.c
index 95fc3e8c51d60b32e2925ee5b3a0cfd437be863a..385d822419ca9f367e83582d2751e6af78a672ea 100644 (file)
@@ -128,9 +128,8 @@ static void svc_xprt_free(struct kref *kref)
        struct svc_xprt *xprt =
                container_of(kref, struct svc_xprt, xpt_ref);
        struct module *owner = xprt->xpt_class->xcl_owner;
-       if (test_bit(XPT_CACHE_AUTH, &xprt->xpt_flags) &&
-           xprt->xpt_auth_cache != NULL)
-               svcauth_unix_info_release(xprt->xpt_auth_cache);
+       if (test_bit(XPT_CACHE_AUTH, &xprt->xpt_flags))
+               svcauth_unix_info_release(xprt);
        xprt->xpt_ops->xpo_free(xprt);
        module_put(owner);
 }
This page took 0.024437 seconds and 5 git commands to generate.