tracing/filters: fix NULL pointer dereference
authorLi Zefan <lizf@cn.fujitsu.com>
Sat, 11 Apr 2009 07:52:35 +0000 (15:52 +0800)
committerIngo Molnar <mingo@elte.hu>
Sun, 12 Apr 2009 09:59:28 +0000 (11:59 +0200)
commitbcabd91c271e50eebc0cb9220ac92700332b452e
tree5513a154d06b4ad1737e6787feeab5d2573f2c43
parent8433a40eb7f2c4883ad57f9900f63e4d59240eb7
tracing/filters: fix NULL pointer dereference

Try this, and you'll see NULL pointer dereference bug:

  # echo -n 'parent_comm ==' > sched/sched_process_fork/filter

Because we passed NULL ptr to simple_strtoull().

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Tom Zanussi <tzanussi@gmail.com>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
LKML-Reference: <49E04C43.1050504@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace_events_filter.c