fix wrong refresh on flashmap patch
authorFlorian Fainelli <florian@openwrt.org>
Thu, 22 Apr 2010 16:35:01 +0000 (16:35 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Thu, 22 Apr 2010 16:35:01 +0000 (16:35 +0000)
SVN-Revision: 21094

target/linux/brcm63xx/patches-2.6.32/040-bcm963xx_flashmap.patch

index 812e008a217fdb2304b21192777728f7a0912431..4784de7d6a0b6f4d66d51942275af613fde0e1de 100644 (file)
@@ -140,7 +140,7 @@ Signed-off-by: Axel Gembe <ago@bastart.eu.org>
 +              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;