Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 28cd05a2 authored by David Howells's avatar David Howells Committed by Greg Kroah-Hartman
Browse files

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: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarSasha Levin <alexander.levin@verizon.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1e7f83cd
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
		}