kernel_optimize_test/drivers/thunderbolt
Dan Carpenter 126ce97d39 thunderbolt: Fix off by one in tb_port_find_retimer()
commit 08fe7ae1857080f5075df5ac7fef2ecd4e289117 upstream.

This array uses 1-based indexing so it corrupts memory one element
beyond of the array.  Fix it by making the array one element larger.

Fixes: dacb12877d ("thunderbolt: Add support for on-board retimers")
Cc: stable@vger.kernel.org
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-04-14 08:42:03 +02:00
..
acpi.c
cap.c
ctl.c
ctl.h
debugfs.c
dma_port.c
dma_port.h
domain.c
eeprom.c
icm.c
Kconfig
lc.c
Makefile
nhi_ops.c
nhi_regs.h
nhi.c
nhi.h
nvm.c
path.c
property.c
quirks.c
retimer.c thunderbolt: Fix off by one in tb_port_find_retimer() 2021-04-14 08:42:03 +02:00
sb_regs.h
switch.c
tb_msgs.h
tb_regs.h
tb.c thunderbolt: Increase runtime PM reference count on DP tunnel discovery 2021-03-25 09:04:15 +01:00
tb.h
test.c
tmu.c
tunnel.c
tunnel.h
usb4.c
xdomain.c