]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: add missing unlock in ext4_check_descriptors() on error path
authorLi Zefan <lizf@cn.fujitsu.com>
Sun, 16 Nov 2008 16:05:24 +0000 (11:05 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 5 Dec 2008 18:55:37 +0000 (10:55 -0800)
commit3f007078d237e1a09db76c18519469b894dccebf
tree9f2ffef221e54bf67cee993678e3fb30768b4495
parente3baeaafd5dd29b2556b697699627fb133ede434
ext4: add missing unlock in ext4_check_descriptors() on error path

(cherry picked from commit 7ee1ec4ca30c6df8e989615cdaacb75f2af4fa6b)

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ext4/super.c