aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flash_unlock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/flash_unlock.c b/flash_unlock.c
index 7a7a773..d775c0b 100644
--- a/flash_unlock.c
+++ b/flash_unlock.c
@@ -168,7 +168,7 @@ int main(int argc, char *argv[])
} else {
mtdLockInfo.start = 0;
}
- if (mtdLockInfo.start > mtdInfo.size)
+ if (mtdLockInfo.start >= mtdInfo.size)
errmsg_die("%#x is beyond device size %#x",
mtdLockInfo.start, mtdInfo.size);