Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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

parent a49c3c77
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
}