]> git.baikalelectronics.ru Git - kernel.git/commit
afs: Fix page leak on afs_write_begin() failure
authorDavid Howells <dhowells@redhat.com>
Thu, 22 Oct 2020 13:03:03 +0000 (14:03 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 29 Oct 2020 13:53:04 +0000 (13:53 +0000)
commit2841a4f3de4d05a602bd5a88be662470a759615a
treeb8a9250f00d11d0d28dc7a50e9ca5bcfbbbd56c1
parente566cf8e9f63c2f7c49587668b29f63dd8f692ae
afs: Fix page leak on afs_write_begin() failure

Fix the leak of the target page in afs_write_begin() when it fails.

Fixes: ad56742773d4 ("afs: convert to new aops")
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Nick Piggin <npiggin@gmail.com>
fs/afs/write.c