]> git.baikalelectronics.ru Git - kernel.git/commit
afs: Fix page leak in afs_write_begin()
authorDavid Howells <dhowells@redhat.com>
Thu, 16 Mar 2017 16:27:48 +0000 (16:27 +0000)
committerDavid Howells <dhowells@redhat.com>
Thu, 16 Mar 2017 16:27:48 +0000 (16:27 +0000)
commitfe4c13a3c764dcfb596cd675c4c7b1018e766268
tree1f9e637368a069518eaba7a918803e73c14c94d4
parent7b7902586bb75f38b78c96e82e63fbff821db79f
afs: Fix page leak in afs_write_begin()

afs_write_begin() leaks a ref and a lock on a page if afs_fill_page()
fails.  Fix the leak by unlocking and releasing the page in the error path.

Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/write.c