[MTD][MTDPART] Fix a division by zero bug
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Fri, 18 Jul 2008 16:01:22 +0000 (01:01 +0900)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 25 Jul 2008 14:00:11 +0000 (10:00 -0400)
commitf636ffb420f0f9059c1d0b841afd691657246ad6
treef1aaf8fedaf98f6143ea1a560c24430a14ac8def
parent6910c1368104d50e6b6afc6c8b7e9d1670a374e7
[MTD][MTDPART] Fix a division by zero bug

When detecting a partition beyond the end of the device, skip most of
the initialisation, in particular those bits causing a division by zero.

Signed-off-by: Jörn Engel <joern@logfs.org>
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/mtdpart.c