diff options
author | David Howells <dhowells@redhat.com> | 2017-03-16 16:27:43 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-12-20 10:01:30 +0100 |
commit | 28cd05a2efe27f5ea1c2b1c5ffef8d350a5ef1eb (patch) | |
tree | aa70839384d601557dfb3acf45795e22f92ffb3c /fs | |
parent | 1e7f83cd53feb19a9bf7ca680ff2edf85647b692 (diff) | |
download | linux-stable-28cd05a2efe27f5ea1c2b1c5ffef8d350a5ef1eb.tar.gz linux-stable-28cd05a2efe27f5ea1c2b1c5ffef8d350a5ef1eb.tar.bz2 linux-stable-28cd05a2efe27f5ea1c2b1c5ffef8d350a5ef1eb.zip |
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 <dhowells@redhat.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/afs/write.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/afs/write.c b/fs/afs/write.c index ab6adfd52516..cbc6d8372369 100644 --- a/fs/afs/write.c +++ b/fs/afs/write.c @@ -504,6 +504,7 @@ static int afs_writepages_region(struct address_space *mapping, if (PageWriteback(page) || !PageDirty(page)) { unlock_page(page); + put_page(page); continue; } |