tracing/filters: strloc should be unsigned short
authorLi Zefan <lizf@cn.fujitsu.com>
Mon, 15 Jun 2009 02:59:17 +0000 (10:59 +0800)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 15 Jun 2009 15:37:18 +0000 (11:37 -0400)
commit0ac2058f686a19fe8ab25c4f3104fc1580dce7cf
treeecc0aa6f26b5479e833c96d2f6263a30ebd80045
parent5e4904cb633177046bee5d26946a7ac918e642fc
tracing/filters: strloc should be unsigned short

I forgot to update filter code accordingly in
"tracing/events: change the type of __str_loc_item to unsigned short"
(commt b0aae68cc5508f3c2fbf728988c954db4c8b8a53)

It can cause system crash:

 # echo 1 > tracing/events/irq/irq_handler_entry/enable
 # echo 'name == eth0' > tracing/events/irq/irq_handler_entry/filter

[ Impact: fix crash while filtering on __string() field ]

Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
LKML-Reference: <4A35B905.3090500@cn.fujitsu.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_events_filter.c