From: Xu Rao Date: Mon, 1 Jun 2026 06:28:54 +0000 (+0800) Subject: thunderbolt: test: Release third DP tunnel X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=168479c9bf07ee28c372c48eebbf66f2d01911dd;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Mika Westerberg --- 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); }