]> git.itanic.dy.fi Git - linux-stable/commit
thunderbolt: Correct path indices for PCIe tunnel
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 11 Jun 2019 16:31:26 +0000 (19:31 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Nov 2019 12:08:52 +0000 (13:08 +0100)
commit4cabebfa1c0766ac1afec380f8ef723802be58dc
treed74847a2f21e35026098ba953bbb3300729c9504
parentce16a0019ce156d0ec96afbdbf26583f46ce2a08
thunderbolt: Correct path indices for PCIe tunnel

[ Upstream commit ce19f91eae43e39d5a1da55344756ab5a3c7e8d1 ]

PCIe tunnel path indices got mixed up when we added support for tunnels
between switches that are not adjacent. This did not affect the
functionality as it is just an index but fix it now nevertheless to make
the code easier to understand.

Reported-by: Rajmohan Mani <rajmohan.mani@intel.com>
Fixes: 8c7acaaf020f ("thunderbolt: Extend tunnel creation to more than 2 adjacent switches")
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Yehezkel Bernat <YehezkelShB@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/thunderbolt/tunnel.c