aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManish V Badarkhe <manish.badarkhe@arm.com>2024-03-18 18:03:26 +0100
committerTrustedFirmware Code Review <review@review.trustedfirmware.org>2024-03-18 18:03:26 +0100
commit4b67249600e466b4f4758ee19fc13e2b0a54118f (patch)
treed423972a4eb55957e93855a7862466fcade22cd5
parent6d5ee5b9d7030780c7b19e6694554e69c17bbed6 (diff)
parentaa68c6cdf4ac0d13162df4e2221f90c5062fb963 (diff)
downloadtf-a-tests-master.tar.gz
Merge "fix(arm): check for null before calling I/O policy callback"HEADmaster
-rw-r--r--plat/arm/common/arm_fwu_io_storage.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plat/arm/common/arm_fwu_io_storage.c b/plat/arm/common/arm_fwu_io_storage.c
index 5af3e0600..2f44a19e2 100644
--- a/plat/arm/common/arm_fwu_io_storage.c
+++ b/plat/arm/common/arm_fwu_io_storage.c
@@ -157,6 +157,9 @@ int plat_get_image_source(unsigned int image_id, uintptr_t *dev_handle,
assert(image_id < ARRAY_SIZE(policies));
policy = &policies[image_id];
+ if (policy->check == NULL) {
+ return result;
+ }
result = policy->check(policy->image_spec);
if (result == IO_SUCCESS) {
*image_spec = policy->image_spec;