aboutsummaryrefslogtreecommitdiff
path: root/src/flash/nor/faux.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/flash/nor/faux.c')
-rw-r--r--src/flash/nor/faux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nor/faux.c b/src/flash/nor/faux.c
index 1fd1da21..8198ef52 100644
--- a/src/flash/nor/faux.c
+++ b/src/flash/nor/faux.c
@@ -50,7 +50,7 @@ FLASH_BANK_COMMAND_HANDLER(faux_flash_bank_command)
return ERROR_FAIL;
}
info->memory = malloc(bank->size);
- if (info == NULL) {
+ if (info->memory == NULL) {
free(info);
LOG_ERROR("no memory for flash bank info");
return ERROR_FAIL;