]> 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)
commit0d0162cef3ab38a5d58b5cef8fbf681d8bc870fb
treecae72195959909ce060801674a21767159632800
parent188265fd1c268c6a7f59bb665335d64512fb02f5
mctp/test: Update refcount checking in route fragment tests

In d36e1fe55, 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: d36e1fe55d72 ("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