ext4: missing unlock/put_page() in ext4_try_to_write_inline_data()
authorMaurizio Lombardi <mlombard@redhat.com>
Tue, 4 Dec 2018 05:06:53 +0000 (00:06 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jan 2019 15:16:43 +0000 (16:16 +0100)
commiteaec103eb0c3a1f0d2e9fe704cc7800aaedf4b0b
tree28d58ed0633b44440ebddb789784118ab150be9b
parent836bf269c56ff1d707b40a64dc8eef6754c2c24e
ext4: missing unlock/put_page() in ext4_try_to_write_inline_data()

commit 132d00becb31e88469334e1e62751c81345280e0 upstream.

In case of error, ext4_try_to_write_inline_data() should unlock
and release the page it holds.

Fixes: f19d5870cbf7 ("ext4: add normal write support for inline data")
Cc: stable@kernel.org # 3.8
Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/inline.c