generic: ar8216: use the generic get_port_link implementation
[openwrt.git] / target / linux / ubicom32 / patches-2.6.32 / 130-flash_driver_fix.patch
1 --- a/drivers/mtd/devices/ubi32-m25p80.c
2 +++ b/drivers/mtd/devices/ubi32-m25p80.c
3 @@ -630,8 +630,8 @@ static int ubicom32_flash_driver_erase(s
4 /* sanity checks */
5 if (instr->addr + instr->len > flash->mtd.size)
6 return -EINVAL;
7 - if ((instr->addr % mtd->erasesize) != 0
8 - || (instr->len % mtd->erasesize) != 0) {
9 + if (((u32) instr->addr % mtd->erasesize) != 0
10 + || ((u32) instr->len % mtd->erasesize) != 0) {
11 return -EINVAL;
12 }
13
This page took 0.04526 seconds and 5 git commands to generate.