mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
afs: Fix missing put_page()
[ Upstream commit 29c8bbbd6e ]
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
b29c7b7c62
commit
c250fae9ad
@@ -502,6 +502,7 @@ static int afs_writepages_region(struct address_space *mapping,
|
||||
|
||||
if (PageWriteback(page) || !PageDirty(page)) {
|
||||
unlock_page(page);
|
||||
put_page(page);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user