mctp/test: Update refcount checking in route fragment tests
Jeremy Kerr
maintainerPATCH 1/1 mctp/test: Update refcount checking in route fragment tests
In 99ce45d5e, we moved a route refcount decrement from mctp_do_fragment_route into the caller. This invalidates the assumption that the route test makes about refcount behaviour, so the route tests fail.
This change fixes the test case to suit the new refcount behaviour.
--- net/mctp/test/route-test.c | 5 ----- 1 file changed, 5 deletions(-)
net/mctp/test/route-test.c +0 -5
@@ -150,11 +150,6 @@ static void mctp_test_fragment(struct kunit *test) rt =mctp_test_create_route (&init_net,NULL ,10 , mtu);KUNIT_ASSERT_TRUE (test, rt); -/* The refcount would usually be incremented as part of a route lookup, -* but we're setting the route directly here. -*/ -refcount_inc (&rt->rt.refs); - rc =mctp_do_fragment_route (&rt->rt, skb, mtu,MCTP_TAG_OWNER );KUNIT_EXPECT_FALSE (test, rc);
Signature · 1 line
2.30.2
This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:
Quoted 8 lines · On Thu, 18 Nov 2021 14:57:23 +0800 you wrote:
In
99ce45d5e, we moved a route refcount decrement frommctp_do_fragment_routeinto the caller. This invalidates the assumption that the route test makes about refcount behaviour, so the route tests fail.This change fixes the test case to suit the new refcount behaviour.
[...]
Here is the summary with links:
- [net-next] mctp/test: Update refcount checking in route fragment tests
https://git.kernel.org/netdev/net-next/c/f6ef47e5bdc6
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html