[PATCH] ext3: Fix missed mutex unlock
authorAnaniev, Leonid I <leonid.i.ananiev@intel.com>
Tue, 11 Apr 2006 05:54:38 +0000 (22:54 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 11 Apr 2006 13:18:46 +0000 (06:18 -0700)
Missed unlock_super()call is added in error condition code path.

Signed-off-by: Leonid Ananiev <leonid.i.ananiev@intel.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/ext3/resize.c

index 1041dab6de2fd92bc1eff0b9abcae86973925017..14f5f6ea3e7230fb2621a620a3639ff136f1996d 100644 (file)
@@ -974,6 +974,7 @@ int ext3_group_extend(struct super_block *sb, struct ext3_super_block *es,
        if (o_blocks_count != le32_to_cpu(es->s_blocks_count)) {
                ext3_warning(sb, __FUNCTION__,
                             "multiple resizers run on filesystem!");
+               unlock_super(sb);
                err = -EBUSY;
                goto exit_put;
        }