From: Florian Fainelli Date: Thu, 22 Apr 2010 16:35:01 +0000 (+0000) Subject: fix wrong refresh on flashmap patch X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=41836b16bb4a896bdde2d6e846f6423c78f9c0a6;p=openwrt%2Fstaging%2Fjow.git fix wrong refresh on flashmap patch SVN-Revision: 21094 --- diff --git a/target/linux/brcm63xx/patches-2.6.32/040-bcm963xx_flashmap.patch b/target/linux/brcm63xx/patches-2.6.32/040-bcm963xx_flashmap.patch index 812e008a21..4784de7d6a 100644 --- a/target/linux/brcm63xx/patches-2.6.32/040-bcm963xx_flashmap.patch +++ b/target/linux/brcm63xx/patches-2.6.32/040-bcm963xx_flashmap.patch @@ -140,7 +140,7 @@ Signed-off-by: Axel Gembe + return -ENOMEM; + + /* Get the tag */ -+ ret = master->read(master,master->erasesize,sizeof(struct bcm_tag), &retlen, (void *)buf); ++ ret = master->read(master,0x10000,sizeof(struct bcm_tag), &retlen, (void *)buf); + if (retlen != sizeof(struct bcm_tag)){ + vfree(buf); + return -EIO;