Skip to content
Commit fdd08233 authored by Chandni Cherukuri's avatar Chandni Cherukuri Committed by Sandrine Bailleux
Browse files

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's avatarChandni Cherukuri <chandni.cherukuri@arm.com>
parent 652d20a9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment