lkml.org 
[lkml]   [2008]   [Oct]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH][RESEND] tracepoint: Check if the probe has been registered

* Frederic Weisbecker <fweisbec@gmail.com> wrote:

> If we try to remove a probe that has not been already registered,
> the tracepoint_entry_remove_probe() function will dereference a NULL
> pointer.
> Check the probe before removing it to avoid crashes.
>
> Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
> Acked-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
> Acked-by: Steven Rostedt <srostedt@redhat.com>
> ---
> kernel/tracepoint.c | 8 ++++++++
> 1 files changed, 8 insertions(+), 0 deletions(-)

applied to tip/tracing/urgent, thanks Frederic!

Ingo


\
 
 \ /
  Last update: 2008-10-27 16:49    [W:0.033 / U:1.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site