revert r21085, fixes #7282

SVN-Revision: 21352
This commit is contained in:
Florian Fainelli 2010-05-04 08:07:39 +00:00
parent 34ad2a0b71
commit f89ff525ee
2 changed files with 2 additions and 2 deletions

View file

@ -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,0x10000,sizeof(struct bcm_tag), &retlen, (void *)buf); + ret = master->read(master,master->erasesize,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;

View file

@ -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,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)){ + if (retlen != sizeof(struct bcm_tag)){
+ vfree(buf); + vfree(buf);
+ return -EIO; + return -EIO;