[PATCH] mtd: tests: stresstest: bail out if device has not enough eraseblocks
Artem Bityutskiy
dedekind1 at gmail.com
Sun Dec 4 08:50:47 EST 2011
On Tue, 2011-11-29 at 15:34 +0100, Wolfram Sang wrote:
> stresstest needs at least two eraseblocks. Bail out gracefully if that
> condition is not met. Fixes the following 'division by zero' OOPS:
>
> [ 619.100000] mtd_stresstest: MTD device size 131072, eraseblock size 131072, page size 2048, count of eraseblocks 1, pages per eraseblock 64, OOB size 64
> [ 619.120000] mtd_stresstest: scanning for bad eraseblocks
> [ 619.120000] mtd_stresstest: scanned 1 eraseblocks, 0 are bad
> [ 619.130000] mtd_stresstest: doing operations
> [ 619.130000] mtd_stresstest: 0 operations done
> [ 619.140000] Division by zero in kernel.
Hi, thanks, added
Cc: stable at kernel.org
and pushed to l2-mtd-2.6.git.
--
Best Regards,
Artem Bityutskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20111204/8be816cb/attachment.sig>
More information about the linux-mtd
mailing list