1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-01 00:49:42 +02:00
openwrt-xburst/target/linux/ubicom32/patches-2.6.30/130-flash_driver_fix.patch
nbd a74b524343 ubicom32: add a 2.6.30 patch contributed by ubicom, with my cleanups and fixes split out into separate patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18806 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-17 16:21:13 +00:00

14 lines
445 B
Diff

--- a/drivers/mtd/devices/ubi32-m25p80.c
+++ b/drivers/mtd/devices/ubi32-m25p80.c
@@ -630,8 +630,8 @@ static int ubicom32_flash_driver_erase(s
/* sanity checks */
if (instr->addr + instr->len > flash->mtd.size)
return -EINVAL;
- if ((instr->addr % mtd->erasesize) != 0
- || (instr->len % mtd->erasesize) != 0) {
+ if (((u32) instr->addr % mtd->erasesize) != 0
+ || ((u32) instr->len % mtd->erasesize) != 0) {
return -EINVAL;
}