From: Sahara Date: Mon, 15 Apr 2013 02:13:15 +0000 (+0900) Subject: tracepoints: Prevent null probe from being added X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~134^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c69e6ea415a35eb7f0fc8ee9390c8f7436492a2;p=pandora-kernel.git 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/1365991995-19445-1-git-send-email-kpark3469@gmail.com Reviewed-by: Mathieu Desnoyers Acked-by: Mathieu Desnoyers Signed-off-by: Sahara Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed