Skip to content
Snippets Groups Projects
Commit 75ab3f06 authored by Mika Westerberg's avatar Mika Westerberg
Browse files

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: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
parent 7e897bb7
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment