X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=target%2Flinux%2Fixp4xx-2.6%2Fpatches%2F139-ixp4xx_net_driver_mtd_load_fw.patch;h=ef53155c039bef3d822a7c6e980a5d3ccfaffb4c;hp=46ba858f1ceea20e4ad1210a7fab5286d4900074;hb=b1eee5ee61e2b6d48f6c4461e7c908947cd55133;hpb=43562e218c27c6d743ff9baf3f75ae48ef1c9ab8 diff --git a/target/linux/ixp4xx-2.6/patches/139-ixp4xx_net_driver_mtd_load_fw.patch b/target/linux/ixp4xx-2.6/patches/139-ixp4xx_net_driver_mtd_load_fw.patch index 46ba858f1c..ef53155c03 100644 --- a/target/linux/ixp4xx-2.6/patches/139-ixp4xx_net_driver_mtd_load_fw.patch +++ b/target/linux/ixp4xx-2.6/patches/139-ixp4xx_net_driver_mtd_load_fw.patch @@ -148,7 +148,7 @@ Index: linux-2.6.20-rc3/drivers/net/ixp4xx/npe_ucode.c + + print_image_info(id, offset - 12, size); + -+ if (size < 24000 && ( IMG_FUNC(id) == 0x01 || IMG_FUNC(id) == 0x00) ) { // XXX fix size/detection ++ if (size < 24000 && ( IMG_FUNC(id) == 0x01 || IMG_FUNC(id) == 0x00) || IMG_FUNC(id) == 0x05 ) { // XXX fix size/detection + + struct dl_image *image = kmalloc(size, GFP_KERNEL); +