tracing/kprobe: Fix NULL pointer deref check
commit0de4b34d466bae571b50f41c7296b85248205e35
authorMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Mon, 14 Feb 2011 05:48:07 +0000 (14 14:48 +0900)
committerIngo Molnar <mingo@elte.hu>
Mon, 14 Feb 2011 11:09:53 +0000 (14 12:09 +0100)
tree43c590d7cec90324bfdcf1cec074a8172547ed18
parent40262a71536d0b4a7486b279fa39463cfffabcc2
tracing/kprobe: Fix NULL pointer deref check

Add NULL check for avoiding NULL pointer deref.
This bug has been introduced by:

  1ff511e35ed8: tracing/kprobes: Add bitfield type

which causes a null pointer dereference bug when kprobe-tracer
parses an argument without type.

Reported-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: 2nddept-manager@sdl.hitachi.co.jp
Cc: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <20110214054807.8919.69740.stgit@ltc236.sdl.hitachi.co.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Reported-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
kernel/trace/trace_kprobe.c