ext4: add missing ext4_resize_end on error paths
authorDjalal Harouni <tixxdz@opendz.org>
Wed, 4 Jan 2012 22:09:52 +0000 (17:09 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Jan 2012 00:13:07 +0000 (16:13 -0800)
commit19800ba5243e10668bbed7eef85ddd16452e5d26
tree198d2add4a3ca5d1f86b0ddc1c86cf1aab29da87
parent36a8176166397d103352670327e1b20d334b5c7d
ext4: add missing ext4_resize_end on error paths

commit 014a1770371a028d22f364718c805f4216911ecd upstream.

Online resize ioctls 'EXT4_IOC_GROUP_EXTEND' and 'EXT4_IOC_GROUP_ADD'
call ext4_resize_begin() to check permissions and to set the
EXT4_RESIZING bit lock, they do their work and they must finish with
ext4_resize_end() which calls clear_bit_unlock() to unlock and to
avoid -EBUSY errors for the next resize operations.

This patch adds the missing ext4_resize_end() calls on error paths.

Patch tested.

Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ext4/ioctl.c