mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-09-12 07:31:30 +03:00
[brcm63xx] fix wrong refresh on flashmap patch
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21094 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
a850143071
commit
6b1f9d61fa
@ -140,7 +140,7 @@ Signed-off-by: Axel Gembe <ago@bastart.eu.org>
|
|||||||
+ return -ENOMEM;
|
+ return -ENOMEM;
|
||||||
+
|
+
|
||||||
+ /* Get the tag */
|
+ /* 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)){
|
+ if (retlen != sizeof(struct bcm_tag)){
|
||||||
+ vfree(buf);
|
+ vfree(buf);
|
||||||
+ return -EIO;
|
+ return -EIO;
|
||||||
|
Loading…
Reference in New Issue
Block a user