aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm-2.6
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-08-22 20:19:42 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-08-22 20:19:42 +0000
commitb026653d76e3e9a6aa07f5aa30a2a963bcebb1cf (patch)
treed535c31fcf50f322415303830fb1eb068e37afb2 /target/linux/brcm-2.6
parentd7b3150c641527a80c560acc5e755472f8b4bc18 (diff)
downloadupstream-b026653d76e3e9a6aa07f5aa30a2a963bcebb1cf.tar.gz
upstream-b026653d76e3e9a6aa07f5aa30a2a963bcebb1cf.tar.bz2
upstream-b026653d76e3e9a6aa07f5aa30a2a963bcebb1cf.zip
don't try to create mtd partitions on bcm947xx when the trx header is not found - should fix #318
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4634 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm-2.6')
-rw-r--r--target/linux/brcm-2.6/patches/002-flash-map.patch5
1 files changed, 3 insertions, 2 deletions
diff --git a/target/linux/brcm-2.6/patches/002-flash-map.patch b/target/linux/brcm-2.6/patches/002-flash-map.patch
index a8ed9092c0..9d568930d2 100644
--- a/target/linux/brcm-2.6/patches/002-flash-map.patch
+++ b/target/linux/brcm-2.6/patches/002-flash-map.patch
@@ -1,7 +1,7 @@
diff -urN linux.old/drivers/mtd/maps/bcm47xx-flash.c linux.dev/drivers/mtd/maps/bcm47xx-flash.c
--- linux.old/drivers/mtd/maps/bcm47xx-flash.c 1970-01-01 01:00:00.000000000 +0100
+++ linux.dev/drivers/mtd/maps/bcm47xx-flash.c 2006-06-23 19:54:06.000000000 +0200
-@@ -0,0 +1,451 @@
+@@ -0,0 +1,452 @@
+/*
+ * Copyright (C) 2006 Felix Fietkau <nbd@openwrt.org>
+ * Copyright (C) 2005 Waldemar Brodkorb <wbx@openwrt.org>
@@ -326,7 +326,8 @@ diff -urN linux.old/drivers/mtd/maps/bcm47xx-flash.c linux.dev/drivers/mtd/maps/
+{
+ int cfe_size;
+
-+ cfe_size = find_cfe_size(mtd,size);
++ if ((cfe_size = find_cfe_size(mtd,size)) < 0)
++ return NULL;
+
+ /* boot loader */
+ bcm947xx_parts[0].offset = 0;