[PATCH] thunderbolt: test: release third DP tunnel

Xu Rao posted 1 patch 6 days, 23 hours ago
drivers/thunderbolt/test.c | 1 +
1 file changed, 1 insertion(+)
[PATCH] thunderbolt: test: release third DP tunnel
Posted by Xu Rao 6 days, 23 hours ago
tb_test_tunnel_3dp() allocates three DisplayPort tunnels
but only releases the first two before returning. Release the
third tunnel as well to keep the test cleanup balanced.

Signed-off-by: Xu Rao <raoxu@uniontech.com>
---
 drivers/thunderbolt/test.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/thunderbolt/test.c b/drivers/thunderbolt/test.c
index 1f4318249c22..675ab2f24ea1 100644
--- a/drivers/thunderbolt/test.c
+++ b/drivers/thunderbolt/test.c
@@ -1661,6 +1661,7 @@ static void tb_test_tunnel_3dp(struct kunit *test)
 	KUNIT_ASSERT_EQ(test, tunnel3->npaths, 3);
 	KUNIT_ASSERT_EQ(test, tunnel3->paths[0]->path_length, 3);

+	tb_tunnel_put(tunnel3);
 	tb_tunnel_put(tunnel2);
 	tb_tunnel_put(tunnel1);
 }
--
2.50.1
Re: [PATCH] thunderbolt: test: release third DP tunnel
Posted by Mika Westerberg 6 days, 18 hours ago
On Mon, Jun 01, 2026 at 02:28:54PM +0800, Xu Rao wrote:
> tb_test_tunnel_3dp() allocates three DisplayPort tunnels
> but only releases the first two before returning. Release the
> third tunnel as well to keep the test cleanup balanced.
> 
> Signed-off-by: Xu Rao <raoxu@uniontech.com>

Applied to thunderbolt.git/next, thanks!