]> git.baikalelectronics.ru Git - kernel.git/commit
mctp/test: Update refcount checking in route fragment tests
authorJeremy Kerr <jk@codeconstruct.com.au>
Thu, 18 Nov 2021 06:57:23 +0000 (14:57 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Nov 2021 12:01:14 +0000 (12:01 +0000)
commit1671d57f031a782cde01353dfa613026946e5030
treecae72195959909ce060801674a21767159632800
parent9dfb7c1cbbda0556ee8b45eab82d540ffe5db63a
mctp/test: Update refcount checking in route fragment tests

In 3eb892a63, 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.

Fixes: 3eb892a638e2 ("mctp: Implement extended addressing")
Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mctp/test/route-test.c