clock_count declared as uint8_t* allocated as sizeof(uint32_t)
Created by: christophklee
There is a minor bug in the mod_scmi_clock_config_set_policy function at line 510 https://github.com/ARM-software/SCP-firmware/blob/e790193af1a390f3794e317496e084749c6326e6/module/scmi_clock/src/mod_scmi_clock.c#L510 :
At line 489 clock_count is defined as:
static uint8_t *clock_count = NULL;
However, at line 509/510 it gets allocated as a uint32_t object:
clock_count = fwk_mm_calloc(
(unsigned int)scmi_clock_ctx.clock_devices, sizeof(uint32_t));