]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit90e5c4c69a66c0f047f8c605ec83465ffd72878d
tree8f89089a3a8fe39b651a9d77c53fb31e506e5728
parent30a2b82f47dc343f5fca63c5c3fb7eb3a95b8d05
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: a7678496323b ("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