diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-12-17 16:21:13 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-12-17 16:21:13 +0000 |
commit | 6fd0f3502828de12aa3a30e4b3789b4616f498d3 (patch) | |
tree | 3722fba2aff85955e66689ee6a852ec6f224ab95 /target/linux/ubicom32/patches-2.6.30/130-flash_driver_fix.patch | |
parent | 79cdfd54568a4ef1ef67ead1bf5cd70bbd168c1e (diff) | |
download | upstream-6fd0f3502828de12aa3a30e4b3789b4616f498d3.tar.gz upstream-6fd0f3502828de12aa3a30e4b3789b4616f498d3.tar.bz2 upstream-6fd0f3502828de12aa3a30e4b3789b4616f498d3.zip |
ubicom32: add a 2.6.30 patch contributed by ubicom, with my cleanups and fixes split out into separate patches
SVN-Revision: 18806
Diffstat (limited to 'target/linux/ubicom32/patches-2.6.30/130-flash_driver_fix.patch')
-rw-r--r-- | target/linux/ubicom32/patches-2.6.30/130-flash_driver_fix.patch | 13 |
1 files changed, 13 insertions, 0 deletions
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 0000000000..95fa50807b --- /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; + } + |