CSS: Fix overrun if system power level is not available
authorSoby Mathew <soby.mathew@arm.com>
Mon, 10 Sep 2018 10:32:49 +0000 (11:32 +0100)
committerSoby Mathew <soby.mathew@arm.com>
Mon, 10 Sep 2018 10:32:49 +0000 (11:32 +0100)
commitd4ee9aa6cd3ed80593a832cab393c615b5723dfe
tree73e86ad58133865c031336ee55a37d5e0161f2b6
parent438e78942dfb3d069b500201b8ac02c7986f459d
CSS: Fix overrun if system power level is not available

This patch fixes an array overrun in CSS scmi driver if the
system power domain level is less than 2. This was reported from
https://scan.coverity.com/projects/arm-software-arm-trusted-firmware

CID 308492

Change-Id: I3a59c700490816718d20c71141281f19b2b7e7f7
Signed-off-by: Soby Mathew <soby.mathew@arm.com>
plat/arm/css/drivers/scp/css_pm_scmi.c