diff options
author | 2024-01-26 20:46:22 +0100 | |
---|---|---|
committer | 2024-02-05 14:35:48 +0000 | |
commit | 5c018e378f916b56503bba65cbdec66ad16f20b7 (patch) | |
tree | 8c64a2f6838bc9a995d723f33a1010edea830278 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | spi: intel: Keep the BIOS partition inside the first chip (diff) | |
download | wireguard-linux-5c018e378f916b56503bba65cbdec66ad16f20b7.tar.xz wireguard-linux-5c018e378f916b56503bba65cbdec66ad16f20b7.zip |
spi: spi-rockchip: Fix out of bounds array access
Since spi-rockchip enables use_gpio_descriptors and the
SPI_CONTROLLER_GPIO_SS flag, the spi subsytem may call set_cs()
for spi devices with indexes above ROCKCHIP_SPI_MAX_CS_NUM
Remove array cs_asserted[] which held a shadow copy of the state
of the chip select lines with the only purpose of optimizing out
rewriting a chip select line to the current state (no-op)
This case is already handled by spi.c
Signed-off-by: Luis de Arquer <luis.dearquer@inertim.com>
Link: https://lore.kernel.org/r/d0a0c4b94f933f7f43973c34765214303ee82b77.camel@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions