aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/livepatch/transition.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/livepatch/transition.c')
-rw-r--r--kernel/livepatch/transition.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/livepatch/transition.c b/kernel/livepatch/transition.c
index 304d5eb8a98c..f27a378ad5e1 100644
--- a/kernel/livepatch/transition.c
+++ b/kernel/livepatch/transition.c
@@ -224,11 +224,11 @@ static int klp_check_stack_func(struct klp_func *func,
224 * Check for the to-be-patched function 224 * Check for the to-be-patched function
225 * (the previous func). 225 * (the previous func).
226 */ 226 */
227 ops = klp_find_ops(func->old_addr); 227 ops = klp_find_ops(func->old_func);
228 228
229 if (list_is_singular(&ops->func_stack)) { 229 if (list_is_singular(&ops->func_stack)) {
230 /* original function */ 230 /* original function */
231 func_addr = func->old_addr; 231 func_addr = (unsigned long)func->old_func;
232 func_size = func->old_size; 232 func_size = func->old_size;
233 } else { 233 } else {
234 /* previously patched function */ 234 /* previously patched function */