mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 19:12:33 +08:00
parent
34ad2a0b71
commit
f89ff525ee
@ -140,7 +140,7 @@ Signed-off-by: Axel Gembe <ago@bastart.eu.org>
|
||||
+ return -ENOMEM;
|
||||
+
|
||||
+ /* 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)){
|
||||
+ vfree(buf);
|
||||
+ return -EIO;
|
||||
|
@ -140,7 +140,7 @@ Signed-off-by: Axel Gembe <ago@bastart.eu.org>
|
||||
+ 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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user