summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXu Rao <raoxu@uniontech.com>2026-06-01 09:28:54 +0300
committerMika Westerberg <mika.westerberg@linux.intel.com>2026-06-01 13:37:32 +0300
commit168479c9bf07ee28c372c48eebbf66f2d01911dd (patch)
tree27fe2194d4097e986913558ea8bd82382c3b5a57
parent2c5d2d3c3f70cde2565d7b279b544893a2035842 (diff)
downloadlinux-168479c9bf07ee28c372c48eebbf66f2d01911dd.tar.xz
thunderbolt: test: Release third DP tunnel
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> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
-rw-r--r--drivers/thunderbolt/test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/thunderbolt/test.c b/drivers/thunderbolt/test.c
index 463186a1abf9..05652ee82fbf 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);
}