ps3: Update kernel to linux-2.6.30
[openwrt.git] / target / linux / generic-2.6 / patches-2.6.21 / 212-block2mtd_erase_scan.patch
1 --- a/drivers/mtd/devices/block2mtd.c
2 +++ b/drivers/mtd/devices/block2mtd.c
3 @@ -112,7 +112,7 @@ static int _block2mtd_erase(struct block
4 if (IS_ERR(page))
5 return PTR_ERR(page);
6
7 - max = (u_long*)page_address(page) + PAGE_SIZE;
8 + max = (u_long*) ((u8 *) page_address(page) + PAGE_SIZE);
9 for (p=(u_long*)page_address(page); p<max; p++)
10 if (*p != -1UL) {
11 lock_page(page);
This page took 0.036824 seconds and 5 git commands to generate.