summaryrefslogtreecommitdiff
path: root/drivers/io/io_fip.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/io/io_fip.c')
-rw-r--r--drivers/io/io_fip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/io/io_fip.c b/drivers/io/io_fip.c
index 99cf15b9..bdacc9c0 100644
--- a/drivers/io/io_fip.c
+++ b/drivers/io/io_fip.c
@@ -299,7 +299,9 @@ static int fip_file_read(io_entity_t *entity, uintptr_t buffer, size_t length,
uintptr_t backend_handle;
assert(entity != NULL);
+#ifndef PLAT_ALLOW_ZERO_ADDR_COPY
assert(buffer != (uintptr_t)NULL);
+#endif
assert(length_read != NULL);
assert(entity->info != (uintptr_t)NULL);