tracing/filters: fix off-by-one bug
authorLi Zefan <lizf@cn.fujitsu.com>
Fri, 15 May 2009 03:07:56 +0000 (11:07 +0800)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 15 May 2009 03:55:12 +0000 (23:55 -0400)
commit5872144f64b34a5942f6b4acedc90b02de72c58b
tree65ab10576155c05d7ac319197896a31721f61499
parent8cd995b6deedf98b7694ed32a786ee7f793d1eec
tracing/filters: fix off-by-one bug

We should leave the last slot for the ending '\0'.

[ Impact: fix possible crash when the length of an operand is 128 ]

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
LKML-Reference: <4A0CDC8C.30602@cn.fujitsu.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_events_filter.c