ext4: release bh in make_indexed_dir
authorgmail <yngsion@gmail.com>
Fri, 30 Sep 2016 05:33:37 +0000 (01:33 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 30 Sep 2016 05:33:37 +0000 (01:33 -0400)
commite81d44778d1d57bbaef9e24c4eac7c8a7a401d40
tree1b87db2d4dac5c42ced761cd206b9587f6cc04aa
parent16c54688592ce8eea85d2a26d37b64fa07e3e233
ext4: release bh in make_indexed_dir

The commit 6050d47adcad: "ext4: bail out from make_indexed_dir() on
first error" could end up leaking bh2 in the error path.

[ Also avoid renaming bh2 to bh, which just confuses things --tytso ]

Cc: stable@vger.kernel.org
Signed-off-by: yangsheng <yngsion@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/namei.c