ext4: avoid buffer leak on shutdown in ext4_mark_iloc_dirty()
authorVasily Averin <vvs@virtuozzo.com>
Tue, 6 Nov 2018 21:49:50 +0000 (16:49 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 6 Nov 2018 21:49:50 +0000 (16:49 -0500)
commita6758309a005060b8297a538a457c88699cb2520
tree8f89089a3a8fe39b651a9d77c53fb31e506e5728
parentdb6aee62406d9fbb53315fcddd81f1dc271d49fa
ext4: avoid buffer leak on shutdown in ext4_mark_iloc_dirty()

ext4_mark_iloc_dirty() callers expect that it releases iloc->bh
even if it returns an error.

Fixes: 0db1ff222d40 ("ext4: add shutdown bit and check for it")
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org # 4.11
fs/ext4/inode.c