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>
diff --git a/stm50flw0x0x.c b/stm50flw0x0x.c
index 1838efc..3300969 100644
--- a/stm50flw0x0x.c
+++ b/stm50flw0x0x.c
@@ -85,7 +85,7 @@
{
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;