* [PATCH] thunderbolt: test: release third DP tunnel
@ 2026-06-01 6:28 Xu Rao
2026-06-01 10:40 ` Mika Westerberg
0 siblings, 1 reply; 2+ messages in thread
From: Xu Rao @ 2026-06-01 6:28 UTC (permalink / raw)
To: andreas.noever; +Cc: westeri, YehezkelShB, linux-usb, linux-kernel, raoxu
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-06-01 10:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-01 6:28 [PATCH] thunderbolt: test: release third DP tunnel Xu Rao
2026-06-01 10:40 ` Mika Westerberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox