summaryrefslogtreecommitdiffstats
path: root/flashrom.c
diff options
context:
space:
mode:
Diffstat (limited to 'flashrom.c')
-rw-r--r--flashrom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/flashrom.c b/flashrom.c
index 2cf8075..03dd643 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -1639,7 +1639,7 @@ int doit(struct flashchip *flash, int force, char *filename, int read_it, int wr
return 1;
}
msg_cinfo("Writing flash chip... ");
- ret = flash->write(flash, buf);
+ ret = flash->write(flash, buf, 0, flash->total_size * 1024);
if (ret) {
msg_cerr("FAILED!\n");
emergency_help_message();
OpenPOWER on IntegriCloud