Re: [PATCH] Don't risk NULL deref in marker

2008-02-25 Thread Mathieu Desnoyers
* Jesper Juhl ([EMAIL PROTECTED]) wrote: > > get_marker() may return NULL, so test for it. > Hrm, yes, if we have two marker_probe_unregister callers calling it for the same marker, one expecting it to fail and they race, yes, it can happen. Although this is not expected to happen often if the c

[PATCH] Don't risk NULL deref in marker

2008-02-25 Thread Jesper Juhl
get_marker() may return NULL, so test for it. Signed-off-by: Jesper Juhl <[EMAIL PROTECTED]> --- diff --git a/kernel/marker.c b/kernel/marker.c index 50effc0..f211f08 100644 --- a/kernel/marker.c +++ b/kernel/marker.c @@ -698,12 +698,11 @@ int marker_probe_unregister(const char *name, {