mtd: bcm47xxpart: avoid overflowing when registering trx
authorRafał Miłecki <zajec5@gmail.com>
Wed, 26 Feb 2014 13:30:34 +0000 (14:30 +0100)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 11 Mar 2014 05:42:29 +0000 (22:42 -0700)
commit108ebcd81907cd4818feb3bc1eabcc4a5373da32
treee69136542afe80e595d0d2d0a4668875d434cbea
parent00b79860eb5f72462016046d3841b19ebff6e846
mtd: bcm47xxpart: avoid overflowing when registering trx

Our code parsing "trx" header registers few partitions at once (in one
loop iteration). Add extra check in that place.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/bcm47xxpart.c