diff --git a/[refs] b/[refs] index 9fd38b89a877..4c6c5e65dba4 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e8b43555a2a8c71e8501924e260f62b9545c598b +refs/heads/master: 53e6d8d182e97c5211da4ee1f163c840c7ecf8ca diff --git a/trunk/fs/nfsd/export.c b/trunk/fs/nfsd/export.c index 33bfcf09db46..9dc036f18356 100644 --- a/trunk/fs/nfsd/export.c +++ b/trunk/fs/nfsd/export.c @@ -1023,7 +1023,7 @@ exp_export(struct nfsctl_export *nxp) /* Look up the dentry */ err = path_lookup(nxp->ex_path, 0, &nd); if (err) - goto out_unlock; + goto out_put_clp; err = -EINVAL; exp = exp_get_by_name(clp, nd.path.mnt, nd.path.dentry, NULL); @@ -1090,9 +1090,9 @@ exp_export(struct nfsctl_export *nxp) exp_put(exp); if (fsid_key && !IS_ERR(fsid_key)) cache_put(&fsid_key->h, &svc_expkey_cache); - if (clp) - auth_domain_put(clp); path_put(&nd.path); +out_put_clp: + auth_domain_put(clp); out_unlock: exp_writeunlock(); out: