lkml.org 
[lkml]   [2011]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[07/55] nfsd4: fix struct file leak on delegation
    2.6.38-stable review patch.  If anyone has any objections, please let us know.

    ------------------

    From: J. Bruce Fields <bfields@redhat.com>

    commit 4ee63624fd927376b97ead3a8d00728d437bc8e8 upstream.

    Introduced by acfdf5c383b38f7f4dddae41b97c97f1ae058f49.

    Reported-by: Gerhard Heift <ml-nfs-linux-20110412-ef47@gheift.de>
    Signed-off-by: J. Bruce Fields <bfields@redhat.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    fs/nfsd/nfs4state.c | 1 +
    1 file changed, 1 insertion(+)

    --- a/fs/nfsd/nfs4state.c
    +++ b/fs/nfsd/nfs4state.c
    @@ -258,6 +258,7 @@ static void nfs4_put_deleg_lease(struct
    if (atomic_dec_and_test(&fp->fi_delegees)) {
    vfs_setlease(fp->fi_deleg_file, F_UNLCK, &fp->fi_lease);
    fp->fi_lease = NULL;
    + fput(fp->fi_deleg_file);
    fp->fi_deleg_file = NULL;
    }
    }



    \
     
     \ /
      Last update: 2011-04-29 21:11    [W:0.024 / U:1.864 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site