soc: nxp: imx943: Fix potential out-of-bounds access in pm_mcore loop

Limit the loop to the smaller of nvic_iser_nb and
GPC_CPU_CTRL_CMC_IRQ_WAKEUP_MASK_COUNT to ensure safe access.

Signed-off-by: Yongxu Wang <yongxu.wang@nxp.com>
1 file changed