X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/9a74b7c37f23cca5f3ad3fa1ce7a716ba1b93cfd..347c600521d2864d728e192cff1c1124d54b23ea:/target/linux/brcm63xx/patches-2.6.33/040-bcm963xx_flashmap.patch diff --git a/target/linux/brcm63xx/patches-2.6.33/040-bcm963xx_flashmap.patch b/target/linux/brcm63xx/patches-2.6.33/040-bcm963xx_flashmap.patch index 6edb8c787..5f3e0a273 100644 --- a/target/linux/brcm63xx/patches-2.6.33/040-bcm963xx_flashmap.patch +++ b/target/linux/brcm63xx/patches-2.6.33/040-bcm963xx_flashmap.patch @@ -140,7 +140,7 @@ Signed-off-by: Axel Gembe + return -ENOMEM; + + /* Get the tag */ -+ ret = master->read(master,0x10000,sizeof(struct bcm_tag), &retlen, (void *)buf); ++ ret = master->read(master,mater->erasesize,sizeof(struct bcm_tag), &retlen, (void *)buf); + if (retlen != sizeof(struct bcm_tag)){ + vfree(buf); + return -EIO;