Commit a54665a
committed
ftrace: Comment that ftrace_func_mapper is freed with free_ftrace_hash()
The structure ftrace_func_mapper only contains a single field and that is
a ftrace_hash. It is used to abstract it out from a normal hash to control
users of how it gets modified.
The freeing of a ftrace_func_mapper structure is:
free_ftrace_hash(&mapper->hash);
Without context, this looks like a bug. It should be commented that it is
not a bug and it is freed this way.
Cc: Masami Hiramatsu <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Cc: Mark Rutland <[email protected]>
Link: https://lore.kernel.org/[email protected]
Signed-off-by: Steven Rostedt (Google) <[email protected]>1 parent 761ef34 commit a54665a
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5208 | 5208 | | |
5209 | 5209 | | |
5210 | 5210 | | |
| 5211 | + | |
| 5212 | + | |
| 5213 | + | |
| 5214 | + | |
5211 | 5215 | | |
5212 | | - | |
| 5216 | + | |
5213 | 5217 | | |
5214 | 5218 | | |
5215 | 5219 | | |
| |||
5344 | 5348 | | |
5345 | 5349 | | |
5346 | 5350 | | |
| 5351 | + | |
5347 | 5352 | | |
5348 | 5353 | | |
5349 | 5354 | | |
| |||
0 commit comments