Commit 603c83da authored by Trond Myklebust's avatar Trond Myklebust

NFSv4: Fix an rpc_cred reference leakage in fs/nfs/delegation.c

Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent a49c3c77
......@@ -168,7 +168,8 @@ int nfs_inode_set_delegation(struct inode *inode, struct rpc_cred *cred, struct
spin_unlock(&inode->i_lock);
spin_unlock(&clp->cl_lock);
kfree(delegation);
if (delegation != NULL)
nfs_free_delegation(delegation);
return status;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment