projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec7c6de
)
tools lib traceevent: Unregister handler when cfg80211 plugin is unloaded
author
Namhyung Kim
<
[email protected]
>
Thu, 16 Jan 2014 02:31:15 +0000
(11:31 +0900)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Thu, 16 Jan 2014 19:26:25 +0000
(16:26 -0300)
The function handler should be unregistered when the plugin is unloaded
otherwise it'll try to access invalid memory.
Signed-off-by: Namhyung Kim <
[email protected]
>
Reviewed-by: Jiri Olsa <
[email protected]
>
Acked-by: Steven Rostedt <
[email protected]
>
Cc: Frederic Weisbecker <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Cc: Jiri Olsa <
[email protected]
>
Cc: Namhyung Kim <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Steven Rostedt <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/lib/traceevent/plugin_cfg80211.c
patch
|
blob
|
history
diff --git
a/tools/lib/traceevent/plugin_cfg80211.c
b/tools/lib/traceevent/plugin_cfg80211.c
index 57e98221db20e3dff9b19415665d580949a7f9ae..c066b25905f8a65986526e6399e0b4bf50d78811 100644
(file)
--- a/
tools/lib/traceevent/plugin_cfg80211.c
+++ b/
tools/lib/traceevent/plugin_cfg80211.c
@@
-22,3
+22,9
@@
int PEVENT_PLUGIN_LOADER(struct pevent *pevent)
PEVENT_FUNC_ARG_VOID);
return 0;
}
+
+void PEVENT_PLUGIN_UNLOADER(struct pevent *pevent)
+{
+ pevent_unregister_print_function(pevent, process___le16_to_cpup,
+ "__le16_to_cpup");
+}