commit | fdd08233fb104176d3480cdcb23aacb2ec6e2b83 | [log] [tgz] |
---|---|---|
author | Chandni Cherukuri <chandni.cherukuri@arm.com> | Wed Dec 05 12:34:45 2018 +0530 |
committer | Sandrine Bailleux <sandrine.bailleux@arm.com> | Tue Dec 11 13:54:43 2018 +0000 |
tree | da67803d136e3b987545147fb58fb92eea52df26 | |
parent | 652d20a9e6fa0c4ca85bdb7341e98225c28eb61d [diff] |
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>