]> 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)
commit40a9ae970e80fd672ecadb62f5056fdb3f427108
treeb8a9250f00d11d0d28dc7a50e9ca5bcfbbbd56c1
parent282a569b61bd2dd9bd91119919fd6bd33429f371
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