summaryrefslogtreecommitdiff
path: root/src/security/vboot/ec_sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/security/vboot/ec_sync.c')
-rw-r--r--src/security/vboot/ec_sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/security/vboot/ec_sync.c b/src/security/vboot/ec_sync.c
index 5b3287ed13..b3b17dd10e 100644
--- a/src/security/vboot/ec_sync.c
+++ b/src/security/vboot/ec_sync.c
@@ -383,7 +383,7 @@ static vb2_error_t ec_get_expected_hash(enum vb2_firmware_selection select,
/* vboot has no API to return this memory, so must permanently leak a mapping here. */
const uint8_t *file = cbfs_map(filename, &size);
- if (file == NULL)
+ if (!file)
return VB2_ERROR_UNKNOWN;
*hash = file;