mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
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>
This commit is contained in:
parent
2c5d2d3c3f
commit
168479c9bf
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user