diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-10-18 23:59:20 (GMT) |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-10-19 21:19:30 (GMT) |
commit | 603c83da19cf42d0f94022ac2fa389a431e32b84 (patch) | |
tree | 7d1d62169ecdde00b7a83e9fab6480b29099b840 /fs/nfs/delegation.c | |
parent | a49c3c7736a2e77931dabc5bc4a83fb4b2da013e (diff) | |
download | linux-fsl-qoriq-603c83da19cf42d0f94022ac2fa389a431e32b84.tar.xz |
NFSv4: Fix an rpc_cred reference leakage in fs/nfs/delegation.c
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/delegation.c')
-rw-r--r-- | fs/nfs/delegation.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfs/delegation.c b/fs/nfs/delegation.c index af8b235..11833f4 100644 --- a/fs/nfs/delegation.c +++ b/fs/nfs/delegation.c @@ -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; } |