OSDN Git Service

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)
commit21db2cdc667f744691a407105b7712bc18d74023
treeb8a9250f00d11d0d28dc7a50e9ca5bcfbbbd56c1
parentfa04a40b169fcee615afbae97f71a09332993f64
afs: Fix page leak on afs_write_begin() failure

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

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