diff --git a/fs/udf/super.c b/fs/udf/super.c index 2f83c1204e20..d330c7162c3a 100644 --- a/fs/udf/super.c +++ b/fs/udf/super.c @@ -2522,7 +2522,7 @@ static unsigned int udf_count_free(struct super_block *sb) sbi->s_lvid_bh->b_data; if (le32_to_cpu(lvid->numOfPartitions) > part) { accum = le32_to_cpu( - lvid->freeSpaceTable[part]); + (lvid->freeSpaceTable + part)); if (accum == 0xFFFFFFFF) accum = 0; }