Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=603c83da19cf42d0f94022ac2fa389a431e32b84
Commit:     603c83da19cf42d0f94022ac2fa389a431e32b84
Parent:     a49c3c7736a2e77931dabc5bc4a83fb4b2da013e
Author:     Trond Myklebust <[EMAIL PROTECTED]>
AuthorDate: Thu Oct 18 19:59:20 2007 -0400
Committer:  Trond Myklebust <[EMAIL PROTECTED]>
CommitDate: Fri Oct 19 17:19:30 2007 -0400

    NFSv4: Fix an rpc_cred reference leakage in fs/nfs/delegation.c
    
    Signed-off-by: Trond Myklebust <[EMAIL PROTECTED]>
---
 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;
 }
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to