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 |