Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1889)

Unified Diff: flashrom.c

Issue 6749019: ignore fmap if we're erasing the ROM with -E (Closed) Base URL: svn://coreboot.org/flashrom/trunk
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: flashrom.c
diff --git a/flashrom.c b/flashrom.c
index 5b5f01c709372afa82347afd7618cdfd02af46e9..da09ded2c1e3df4fa3fef5a4a31f601777ca3f20 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -1898,9 +1898,11 @@ int doit(struct flashchip *flash, int force, char *filename, int read_it, int wr
flash->unlock(flash);
/* add entries for regions specified in flashmap */
- if (add_fmap_entries(flash) < 0) {
- ret = 1;
- goto out_nofree;
+ if (!erase_it) {
Stefan Reinauer 2011/03/25 22:35:32 should this be if (read_it || write_it) Does it m
dhendrix 2011/03/25 22:50:44 Yes, it makes sense to verify using fmap data. The
+ if (add_fmap_entries(flash) < 0) {
+ ret = 1;
+ goto out_nofree;
+ }
}
/* mark entries included using -i argument as "included" if they are
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698