ftrace/x86: Load ftrace_ops in parameter not the variable holding it

Function tracing callbacks expect to have the ftrace_ops that registered it
passed to them, not the address of the variable that holds the ftrace_ops
that registered it.

Use a mov instead of a lea to store the ftrace_ops into the parameter
of the function tracing callback.

Signed-off-by: Steven Rostedt <>
Reviewed-by: Masami Hiramatsu <>
Signed-off-by: H. Peter Anvin <>
Cc: <> # v3.8+
2 files changed