Re: [PATCH 2/6] tracepoint: Check if the probe has been registered

From: Steven Rostedt
Date: Fri Oct 10 2008 - 12:53:21 EST



On Fri, 10 Oct 2008, Ingo Molnar wrote:

>
> * Frederic Weisbecker <fweisbec@xxxxxxxxx> 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@xxxxxxxxx>
> > ---
> > kernel/tracepoint.c | 8 ++++++++
> > 1 files changed, 8 insertions(+), 0 deletions(-)
>
> applied to tip/tracing/tracepoints, thanks Frederic!
>
> Mathieu, Steve, any objections/observations?

Hmm, my email was on the fritz for this one. I'll have to search for it on
a mailing list web site to see the patch.

-- Steve

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/