lkml.org 
[lkml]   [2017]   [Dec]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.9 077/177] afs: Fix missing put_page()
    Date
    4.9-stable review patch.  If anyone has any objections, please let me know.

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

    From: David Howells <dhowells@redhat.com>


    [ Upstream commit 29c8bbbd6e21daa0997d1c3ee886b897ee7ad652 ]

    In afs_writepages_region(), inside the loop where we find dirty pages to
    deal with, one of the if-statements is missing a put_page().

    Signed-off-by: David Howells <dhowells@redhat.com>
    Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    fs/afs/write.c | 1 +
    1 file changed, 1 insertion(+)

    --- a/fs/afs/write.c
    +++ b/fs/afs/write.c
    @@ -502,6 +502,7 @@ static int afs_writepages_region(struct

    if (PageWriteback(page) || !PageDirty(page)) {
    unlock_page(page);
    + put_page(page);
    continue;
    }


    \
     
     \ /
      Last update: 2017-12-18 18:14    [W:3.224 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site