From: David Howells Date: Thu, 16 Mar 2017 16:27:43 +0000 (+0000) Subject: afs: Fix missing put_page() X-Git-Tag: v4.4.107~66 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1c277e9ebba6ee648b70e4dc4794e67c3d2d80cd;p=thirdparty%2Fkernel%2Fstable.git afs: Fix missing put_page() [ 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 Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- diff --git a/fs/afs/write.c b/fs/afs/write.c index 0714abcd7f323..777ea2bbf4015 100644 --- a/fs/afs/write.c +++ b/fs/afs/write.c @@ -503,6 +503,7 @@ static int afs_writepages_region(struct address_space *mapping, if (PageWriteback(page) || !PageDirty(page)) { unlock_page(page); + put_page(page); continue; }