diff options
author | Florian Fainelli <florian@openwrt.org> | 2008-11-20 21:26:11 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2008-11-20 21:26:11 +0000 |
commit | 6684678a0b8f5fb62c311f6890bb029164bbd6cb (patch) | |
tree | b1bbfcae44620109aed9639779bd8b96149e063d /target/linux/brcm63xx/files | |
parent | 234a100d230ef556c051c4438d9e5cfffa54e9a7 (diff) | |
download | master-187ad058-6684678a0b8f5fb62c311f6890bb029164bbd6cb.tar.gz master-187ad058-6684678a0b8f5fb62c311f6890bb029164bbd6cb.tar.bz2 master-187ad058-6684678a0b8f5fb62c311f6890bb029164bbd6cb.zip |
Prevent the MTD map to fail, somehow detect_cfe will read the tag plus some garbage, therefore making a simple strcmp will fail
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13299 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm63xx/files')
-rw-r--r-- | target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c b/target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c index 9543c172a4..dc1508b6f4 100644 --- a/target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c +++ b/target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c @@ -184,7 +184,7 @@ static int bcm963xx_detect_cfe(struct mtd_info *master) ret = master->read(master, idoffset, 8, &retlen, (void *)buf); buf[retlen] = 0; printk("bcm963xx: Read Signature value of %s\n", buf); - return strncmp(idstring,buf,8); + return strncmp(idstring, buf, 8); } static int __init bcm963xx_mtd_init(void) |