fs/partitions: Validate map_count in Mac partition tables
commitd72ffd63dfec63e7998533b867b5e27a0cb19ed7
authorTimo Warns <warns@pre-sense.de>
Thu, 17 Feb 2011 21:27:40 +0000 (17 22:27 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 24 Feb 2011 22:54:32 +0000 (24 14:54 -0800)
tree7aab4c0fc736916c8641484205791a2612ac752a
parent1dcbc193b364720e9bbc6d4b168e625bc9426c27
fs/partitions: Validate map_count in Mac partition tables

commit fa7ea87a057958a8b7926c1a60a3ca6d696328ed upstream.

Validate number of blocks in map and remove redundant variable.

Signed-off-by: Timo Warns <warns@pre-sense.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/partitions/mac.c