+ 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;