From 5c105d9f3fd086aff195d3849dcf847d6b0bd927 Mon Sep 17 00:00:00 2001 From: blogic Date: Fri, 5 Oct 2012 10:12:53 +0000 Subject: branch Attitude Adjustment git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33625 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../ubicom32/patches-2.6.30/130-flash_driver_fix.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 target/linux/ubicom32/patches-2.6.30/130-flash_driver_fix.patch (limited to 'target/linux/ubicom32/patches-2.6.30/130-flash_driver_fix.patch') diff --git a/target/linux/ubicom32/patches-2.6.30/130-flash_driver_fix.patch b/target/linux/ubicom32/patches-2.6.30/130-flash_driver_fix.patch new file mode 100644 index 000000000..95fa50807 --- /dev/null +++ b/target/linux/ubicom32/patches-2.6.30/130-flash_driver_fix.patch @@ -0,0 +1,13 @@ +--- 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; + } + -- cgit v1.2.3