net: mctp: Fix bad kfree_skb in bind lookup test
authorMatt Johnston <matt@codeconstruct.com.au>
Tue, 12 Aug 2025 05:08:58 +0000 (13:08 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 14 Aug 2025 00:07:34 +0000 (17:07 -0700)
commita58893aa173923fdc49c2d35d638d8133065e952
tree40c5866cee879a7688e47cac20067efb3d10e4ba
parent3bfc778297ecf9348056cec65e2ac6c26a1419d1
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 <alex@ghiti.fr>
Closes: https://lore.kernel.org/all/734b02a3-1941-49df-a0da-ec14310d41e4@ghiti.fr/
Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
Tested-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://patch.msgid.link/20250812-fix-mctp-bind-test-v1-1-5e2128664eb3@codeconstruct.com.au
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mctp/test/route-test.c