diff options
author | Sahara <[email protected]> | 2013-04-15 11:13:15 +0900 |
---|---|---|
committer | Steven Rostedt <[email protected]> | 2013-04-19 19:59:49 -0400 |
commit | 4c69e6ea415a35eb7f0fc8ee9390c8f7436492a2 (patch) | |
tree | 586b87d0779390d498ce45df375b97decacfb059 /lib/mpi/mpi-bit.c | |
parent | d2802d0739dcc61af5e5ea00773ce7ddead4e9c2 (diff) |
tracepoints: Prevent null probe from being added
Somehow tracepoint_entry_add_probe() function allows a null probe function.
And, this may lead to unexpected results since the number of probe
functions in an entry can be counted by checking whether a probe is null
or not in the for-loop.
This patch prevents a null probe from being added.
In tracepoint_entry_remove_probe() function, checking probe parameter
within the for-loop is moved out for code efficiency, leaving the null probe
feature which removes all probe functions in the entry.
Link: http://lkml.kernel.org/r/[email protected]
Reviewed-by: Mathieu Desnoyers <[email protected]>
Acked-by: Mathieu Desnoyers <[email protected]>
Signed-off-by: Sahara <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions