[patch 12/22] ext3: Fix missed mutex unlock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


-stable review patch.  If anyone has any objections, please let us know.


From: "Ananiev, Leonid I" <[email protected]>

Missed unlock_super()call is added in error condition code path.

Signed-off-by: Leonid Ananiev <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>

 fs/ext3/resize.c |    1 +
 1 file changed, 1 insertion(+)

--- linux-
+++ linux-
@@ -974,6 +974,7 @@ int ext3_group_extend(struct super_block
 	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;

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux