mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 23:30:53 +07:00
ftrace: Fix accounting bug with direct->count in register_ftrace_direct()
The direct->count wasn't being updated properly, where it only was updated
when the first entry was added, but should be updated every time.
Fixes: 013bf0da04
("ftrace: Add ftrace_find_direct_func()")
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
This commit is contained in:
parent
760f8bc7c8
commit
1c7f9b673d
@ -5093,7 +5093,6 @@ int register_ftrace_direct(unsigned long ip, unsigned long addr)
|
||||
ftrace_direct_func_count--;
|
||||
}
|
||||
} else {
|
||||
if (!direct->count)
|
||||
direct->count++;
|
||||
}
|
||||
out_unlock:
|
||||
|
Loading…
Reference in New Issue
Block a user