]> www.infradead.org Git - users/jedix/linux-maple.git/commit
afs: Fix missing error handling in afs_write_end()
authorDavid Howells <dhowells@redhat.com>
Tue, 2 Jan 2018 10:02:19 +0000 (10:02 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Mar 2018 09:24:32 +0000 (10:24 +0100)
commit622ded58410c69c821bd5e4b9b5be2dbc0af2c01
tree9231cd0be8453e3af4f75d696cd05f03212dac60
parent4ebaea9e65d20714120d92bc687bbf57f2f64a94
afs: Fix missing error handling in afs_write_end()

[ Upstream commit afae457d874860a7e299d334f59eede5f3ad4b47 ]

afs_write_end() is missing page unlock and put if afs_fill_page() fails.

Reported-by: Al Viro <viro@zeniv.linux.org.uk>
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>
fs/afs/write.c