kunit: Fix wrong parameter to kunit_deactivate_static_stub()
authorTzung-Bi Shih <tzungbi@kernel.org>
Tue, 20 May 2025 08:20:49 +0000 (08:20 +0000)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 21 May 2025 15:51:23 +0000 (09:51 -0600)
commit772e50a76ee664e75581624f512df4e45582605a
tree3e2d1036553e1ff24fdfa527ca9e69338009bba9
parentce7ff26606045413afcbdfcfaa8778e1a208089a
kunit: Fix wrong parameter to kunit_deactivate_static_stub()

kunit_deactivate_static_stub() accepts real_fn_addr instead of
replacement_addr.  In the case, it always passes NULL to
kunit_deactivate_static_stub().

Fix it.

Link: https://lore.kernel.org/r/20250520082050.2254875-1-tzungbi@kernel.org
Fixes: e047c5eaa763 ("kunit: Expose 'static stub' API to redirect functions")
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
lib/kunit/static_stub.c