ext4: add missing unlock in ext4_check_descriptors() on error path
authorLi Zefan <lizf@cn.fujitsu.com>
Mon, 8 Sep 2008 14:47:19 +0000 (10:47 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 8 Sep 2008 14:47:19 +0000 (10:47 -0400)
commit7ee1ec4ca30c6df8e989615cdaacb75f2af4fa6b
tree6d097319a8020d53543af86dfd19ffbbb0110b6e
parent05496769e5da83ce22ed97345afd9c7b71d6bd24
ext4: add missing unlock in ext4_check_descriptors() on error path

If there group descriptors are corrupted we need unlock the block
group lock before returning from the function; else we will oops when
freeing a spinlock which is still being held.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/super.c