aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ks_flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ks_flash.c b/ks_flash.c
index c0179ca..7a87d5c 100644
--- a/ks_flash.c
+++ b/ks_flash.c
@@ -455,7 +455,7 @@ static hal_error_t block_erase(const unsigned blockno)
return HAL_ERROR_IMPOSSIBLE;
/* Sigh, magic numeric return codes */
- if (keystore_erase_subsectors(blockno, blockno) != 1)
+ if (keystore_erase_subsector(blockno) != 1)
return HAL_ERROR_KEYSTORE_ACCESS;
return HAL_OK;