[PATCH] mtdoops: fix the oops_page_used array size

Artem Bityutskiy dedekind1 at gmail.com
Thu Dec 8 16:58:27 EST 2011


On Wed, 2011-12-07 at 17:25 +0200, Roman Tereshonkov wrote:
> BITS_PER_LONG is equal to 32.
> If we want to allocate memory for 32 pages with one bit per page then
> 32 / BITS_PER_LONG  is equal to 1 byte that is 8 bits.
> To fix it we need to multiply the result by sizeof(unsigned long)
> equal to 4.

Ah, you are right. This should also go to the stable tree, I've
added Cc: stable at kernel.org

Pushed to l2-mtd-2.6.git thanks.

Artem.




More information about the linux-mtd mailing list