diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/udf/super.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/udf/super.c b/fs/udf/super.c index ac8a348dcb69..9da6f4ee112c 100644 --- a/fs/udf/super.c +++ b/fs/udf/super.c | |||
@@ -1233,11 +1233,9 @@ static int udf_load_logicalvol(struct super_block *sb, sector_t block, | |||
1233 | BUG_ON(ident != TAG_IDENT_LVD); | 1233 | BUG_ON(ident != TAG_IDENT_LVD); |
1234 | lvd = (struct logicalVolDesc *)bh->b_data; | 1234 | lvd = (struct logicalVolDesc *)bh->b_data; |
1235 | 1235 | ||
1236 | i = udf_sb_alloc_partition_maps(sb, le32_to_cpu(lvd->numPartitionMaps)); | 1236 | ret = udf_sb_alloc_partition_maps(sb, le32_to_cpu(lvd->numPartitionMaps)); |
1237 | if (i != 0) { | 1237 | if (ret) |
1238 | ret = i; | ||
1239 | goto out_bh; | 1238 | goto out_bh; |
1240 | } | ||
1241 | 1239 | ||
1242 | for (i = 0, offset = 0; | 1240 | for (i = 0, offset = 0; |
1243 | i < sbi->s_partitions && offset < le32_to_cpu(lvd->mapTableLength); | 1241 | i < sbi->s_partitions && offset < le32_to_cpu(lvd->mapTableLength); |