aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/flash.c b/core/flash.c
index 9912add..b0c5050 100644
--- a/core/flash.c
+++ b/core/flash.c
@@ -121,7 +121,7 @@ static int flash_nvram_write(uint32_t dst, void *src, uint32_t len)
{
int rc;
- if (try_lock(&flash_lock))
+ if (!try_lock(&flash_lock))
return OPAL_BUSY;
if (nvram_flash->busy) {