X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=target%2Flinux%2Fmagicbox-2.6%2Fpatches%2F002-flash_map.patch;h=e5f803a14438ffc4e90b1805df1a99b739c0b440;hb=260df66c4614cf4af0e5ae4628d5316b4cb9e1fc;hp=fcddb348c72fc2b03a48231f42a61025b704c41e;hpb=9880f57d269379f5d83ed081a758d0be6448cd81;p=openwrt-10.03%2F.git diff --git a/target/linux/magicbox-2.6/patches/002-flash_map.patch b/target/linux/magicbox-2.6/patches/002-flash_map.patch index fcddb348c..e5f803a14 100644 --- a/target/linux/magicbox-2.6/patches/002-flash_map.patch +++ b/target/linux/magicbox-2.6/patches/002-flash_map.patch @@ -95,7 +95,7 @@ diff -urN linux.old/drivers/mtd/maps/magicmap.c linux.dev/drivers/mtd/maps/magic + len != 4) + return -ENXIO; + size += 0x40; /* header size of the uImage */ -+ if ((size > 0) && (size < 0x400000)) { ++ if (size < 0x400000) { + /* skip to next erase block */ + if (size & (flash->erasesize - 1)) { + size |= (flash->erasesize - 1);