mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 21:02:43 +01:00
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/[email protected]
Fixes: e047c5eaa7 ("kunit: Expose 'static stub' API to redirect functions")
Signed-off-by: Tzung-Bi Shih <[email protected]>
Reviewed-by: David Gow <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
This commit is contained in:
1 parent
ce7ff26606
commit
772e50a76e
1 file changed
+1
-1
@@ -96,7 +96,7 @@ void __kunit_activate_static_stub(struct kunit *test,
|
||||
|
||||
/* If the replacement address is NULL, deactivate the stub. */
|
||||
if (!replacement_addr) {
|
||||
kunit_deactivate_static_stub(test, replacement_addr);
|
||||
kunit_deactivate_static_stub(test, real_fn_addr);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user