lib/irq: Correct the spi_desc_table array index
The size of the spi_desc_table array is defined as
'PLAT_MAX_SPI_OFFSET_ID - MIN_SPI_ID' which causes
out of bound access for SPI between
'PLAT_MAX_SPI_OFFSET_ID - MIN_SPI_ID' and 'PLAT_MAX_SPI_OFFSET_ID'.
Define the correct size of spi_desc_table array as
'PLAT_MAX_SPI_OFFSET_ID + 1'.
Change-Id: I32cc6fd1d63fa4a2e04387c8ce4b56f472f834ab
Signed-off-by:
Chandni Cherukuri <chandni.cherukuri@arm.com>
Loading
Please register or sign in to comment