mirror of
https://github.com/dynup/kpatch
synced 2025-02-18 10:46:55 +00:00
kmod/core: fix error path for kpatch_verify_symbol_match failure
If kpatch_verify_symbol_match() fails, set the num_funcs variable so that the ftrace rollback only removes the filter for the affected functions.
This commit is contained in:
parent
579ee5f499
commit
6d951dc996
@ -653,9 +653,11 @@ int kpatch_register(struct kpatch_module *kpmod, bool replace)
|
||||
goto err_rollback;
|
||||
|
||||
ret = kpatch_verify_symbol_match(func->patch->name,
|
||||
func->old_addr);
|
||||
if (ret)
|
||||
func->old_addr);
|
||||
if (ret) {
|
||||
num_funcs = i;
|
||||
goto err_rollback;
|
||||
}
|
||||
|
||||
/*
|
||||
* If any other modules have also patched this function, it
|
||||
|
Loading…
Reference in New Issue
Block a user