Skip to content
Commit 772e50a7 authored by Tzung-Bi Shih's avatar Tzung-Bi Shih Committed by Shuah Khan
Browse files

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: e047c5ea ("kunit: Expose 'static stub' API to redirect functions")
Signed-off-by: default avatarTzung-Bi Shih <tzungbi@kernel.org>
Reviewed-by: default avatarDavid Gow <davidgow@google.com>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
parent ce7ff266
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment