diff options
| author | Matt Johnston <[email protected]> | 2025-08-12 05:08:58 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-08-14 00:07:34 +0000 |
| commit | a58893aa173923fdc49c2d35d638d8133065e952 (patch) | |
| tree | 40c5866cee879a7688e47cac20067efb3d10e4ba | |
| parent | Merge tag 'nf-25-08-13' of https://git.kernel.org/pub/scm/linux/kernel/git/ne... (diff) | |
| download | kernel-a58893aa173923fdc49c2d35d638d8133065e952.tar.gz kernel-a58893aa173923fdc49c2d35d638d8133065e952.zip | |
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: e6d8e7dbc5a3 ("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]>
| -rw-r--r-- | net/mctp/test/route-test.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/mctp/test/route-test.c b/net/mctp/test/route-test.c index fb6b46a952cb..69a3ccfc6310 100644 --- a/net/mctp/test/route-test.c +++ b/net/mctp/test/route-test.c @@ -1586,7 +1586,6 @@ static void mctp_test_bind_lookup(struct kunit *test) cleanup: kfree_skb(skb_sock); - kfree_skb(skb_pkt); /* Drop all binds */ for (size_t i = 0; i < ARRAY_SIZE(lookup_binds); i++) |
