]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
thunderbolt: test: Release third DP tunnel
authorXu Rao <raoxu@uniontech.com>
Mon, 1 Jun 2026 06:28:54 +0000 (14:28 +0800)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 1 Jun 2026 10:37:32 +0000 (12:37 +0200)
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>
drivers/thunderbolt/test.c

index 463186a1abf977623795983d1b8165322f791065..05652ee82fbf889a3cd05f7bf4923114a0302e00 100644 (file)
@@ -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);
 }