提交 603c83da 编写于 作者: T Trond Myklebust

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

Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册