Commit 4576f73c authored by Sughosh Ganu's avatar Sughosh Ganu
Browse files

RAS: ras_common: Add null pointer check for error record probe function



Add a null pointer check for the error record probe
function -- avoids a panic in case a platform has not defined it.

Change-Id: I1139fa0df33297a12ec16615cacd07540925f991
Signed-off-by: default avatarSughosh Ganu <sughosh.ganu@arm.com>
parent 46b69e3d
...@@ -114,9 +114,10 @@ static int ras_interrupt_handler(uint32_t intr_raw, uint32_t flags, ...@@ -114,9 +114,10 @@ static int ras_interrupt_handler(uint32_t intr_raw, uint32_t flags,
panic(); panic();
} }
if (selected->err_record->probe) {
ret = selected->err_record->probe(selected->err_record, &probe_data); ret = selected->err_record->probe(selected->err_record, &probe_data);
assert(ret != 0); assert(ret != 0);
}
/* Call error handler for the record group */ /* Call error handler for the record group */
assert(selected->err_record->handler != NULL); assert(selected->err_record->handler != NULL);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment