linux_dsm_epyc7002/drivers/thunderbolt
Mika Westerberg 75ab3f06a1 thunderbolt: Handle incomplete PCIe/USB3 paths correctly in discovery
If the path is not complete when we do discovery the number of hops may
be less than with the full path. As an example when this can happen is
that user unloads the driver, disconnects the topology, and loads the
driver back. If there is PCIe or USB3 tunnel involved this may happen.

Take this into account in tb_pcie_init_path() and tb_usb3_init_path()
and prevent potential access over array limits.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
2020-06-22 19:58:20 +03:00
..
cap.c thunderbolt: Make tb_switch_find_cap() available to other files 2019-12-18 15:40:36 +01:00
ctl.c thunderbolt: Populate PG field in hot plug acknowledgment packet 2019-12-18 15:34:25 +01:00
ctl.h thunderbolt: Populate PG field in hot plug acknowledgment packet 2019-12-18 15:34:25 +01:00
dma_port.c thunderbolt: Convert rest of the driver files to use SPDX identifier 2018-10-02 15:52:08 -07:00
dma_port.h thunderbolt: Convert rest of the driver files to use SPDX identifier 2018-10-02 15:52:08 -07:00
domain.c thunderbolt: Use scnprintf() for avoiding potential buffer overflow 2020-03-12 11:27:41 +03:00
eeprom.c thunderbolt: eeprom: Replace zero-length array with flexible-array member 2020-02-14 15:07:03 +03:00
icm.c thunderbolt: Add support for Intel Tiger Lake 2020-04-23 09:57:59 +03:00
Kconfig thunderbolt: Improve USB4 config symbol help text 2020-06-15 14:34:21 +03:00
lc.c thunderbolt: Add Display Port adapter pairing and resource management 2019-11-02 12:13:31 +03:00
Makefile thunderbolt: Add support for Time Management Unit 2019-12-18 15:41:15 +01:00
nhi_ops.c thunderbolt: Drop unnecessary read when writing LC command in Ice Lake 2019-10-08 12:08:21 +03:00
nhi_regs.h thunderbolt: Add support for Intel Ice Lake 2019-08-26 12:15:06 +03:00
nhi.c thunderbolt: Get rid of E2E workaround 2020-06-22 19:58:06 +03:00
nhi.h thunderbolt: Add support for Intel Tiger Lake 2020-04-23 09:57:59 +03:00
path.c thunderbolt: Check that both ports are reachable when allocating path 2020-06-22 19:58:19 +03:00
property.c thunderbolt: property: Fix a missing check of kzalloc 2019-03-28 11:30:47 +03:00
switch.c thunderbolt: Make tb_next_port_on_path() work with tree topologies 2020-06-22 19:58:19 +03:00
tb_msgs.h thunderbolt: Populate PG field in hot plug acknowledgment packet 2019-12-18 15:34:25 +01:00
tb_regs.h thunderbolt: Add support for USB 3.x tunnels 2019-12-18 15:41:40 +01:00
tb.c thunderbolt: Add support for USB 3.x tunnels 2019-12-18 15:41:40 +01:00
tb.h thunderbolt: Make tb_path_alloc() work with tree topologies 2020-06-22 19:58:19 +03:00
tmu.c thunderbolt: Add support for Time Management Unit 2019-12-18 15:41:15 +01:00
tunnel.c thunderbolt: Handle incomplete PCIe/USB3 paths correctly in discovery 2020-06-22 19:58:20 +03:00
tunnel.h thunderbolt: Add support for USB 3.x tunnels 2019-12-18 15:41:40 +01:00
usb4.c thunderbolt: Check return value of tb_sw_read() in usb4_switch_op() 2020-04-28 19:00:59 +02:00
xdomain.c thunderbolt: Build initial XDomain property block upon first connect 2020-06-22 19:58:05 +03:00