diff options
author | Sean Nelson <audiohacked@gmail.com> | 2010-03-20 15:15:36 +0000 |
---|---|---|
committer | Sean Nelson <audiohacked@gmail.com> | 2010-03-20 15:15:36 +0000 |
commit | 5691e7eab97da611027b68a833a92e3a35f02ecc (patch) | |
tree | ec2d5b9fda859d48a51909a752a17501e3d7532a /stm50flw0x0x.c | |
parent | 6c0a77ee0c250a92e32a647256e26a9f1ae28833 (diff) | |
download | flashrom-5691e7eab97da611027b68a833a92e3a35f02ecc.zip flashrom-5691e7eab97da611027b68a833a92e3a35f02ecc.tar.gz |
Unlock fixup
Corresponding to flashrom svn r961.
Signed-off-by: Sean Nelson <audiohacked@gmail.com>
Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
Diffstat (limited to 'stm50flw0x0x.c')
-rw-r--r-- | stm50flw0x0x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stm50flw0x0x.c b/stm50flw0x0x.c index 1838efc..3300969 100644 --- a/stm50flw0x0x.c +++ b/stm50flw0x0x.c @@ -85,7 +85,7 @@ int unlock_stm50flw0x0x(struct flashchip *flash) { int i; - for (i = 0; i < flash->total_size; i+= flash->page_size) { + for (i = 0; i < flash->total_size * 1024; i+= flash->page_size) { if(unlock_block_stm50flw0x0x(flash, i)) { fprintf(stderr, "UNLOCK FAILED!\n"); return -1; |