thunderbolt: Check that both ports are reachable when allocating path
authorMika Westerberg <mika.westerberg@linux.intel.com>
Sun, 17 May 2020 07:44:31 +0000 (10:44 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 22 Jun 2020 16:58:19 +0000 (19:58 +0300)
commit7e897bb7be11983b0ef85be80e55ed6273540101
tree36c7ae5a333a59d85e490372aa75bfaee747458d
parentc64c3f3ac63a101a00bd316eaba63d359e9ba215
thunderbolt: Check that both ports are reachable when allocating path

Add sanity check that given src and dst ports are reachable through path
walk before allocating a path. If they are not then bail out early.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/path.c