tracing/kprobe: Fix NULL pointer deref check
Add NULL check for avoiding NULL pointer deref. This bug has been introduced by: 1ff511e3: tracing/kprobes: Add bitfield type which causes a null pointer dereference bug when kprobe-tracer parses an argument without type. Reported-by: NArnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: NMasami 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: NIngo Molnar <mingo@elte.hu> Reported-by: NArnaldo Carvalho de Melo <acme@ghostprotocols.net>
Showing
想要评论请 注册 或 登录