Skip to content

Commit a58893a

Browse files
mkjkuba-moo
authored andcommitted
net: mctp: Fix bad kfree_skb in bind lookup test
The kunit test's skb_pkt is consumed by mctp_dst_input() so shouldn't be freed separately. Fixes: e6d8e7d ("net: mctp: Add bind lookup test") Reported-by: Alexandre Ghiti <[email protected]> Closes: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Matt Johnston <[email protected]> Tested-by: Alexandre Ghiti <[email protected]> Link: https://patch.msgid.link/20250812-fix-mctp-bind-test-v1-1-5e2128664eb3@codeconstruct.com.au Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 3bfc778 commit a58893a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

net/mctp/test/route-test.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1586,7 +1586,6 @@ static void mctp_test_bind_lookup(struct kunit *test)
15861586

15871587
cleanup:
15881588
kfree_skb(skb_sock);
1589-
kfree_skb(skb_pkt);
15901589

15911590
/* Drop all binds */
15921591
for (size_t i = 0; i < ARRAY_SIZE(lookup_binds); i++)

0 commit comments

Comments
 (0)