diff options
-rw-r--r-- | core/flash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/flash.c b/core/flash.c index 7cd9153..bea5160 100644 --- a/core/flash.c +++ b/core/flash.c @@ -312,7 +312,7 @@ static int64_t opal_flash_op(enum flash_op op, uint64_t id, uint64_t offset, } if (size >= flash->size || offset >= flash->size - || offset + size >= flash->size) { + || offset + size > flash->size) { rc = OPAL_PARAMETER; goto err; } |