summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorLi Zefan <lizf@cn.fujitsu.com>2010-01-14 03:54:11 +0100
committerSteven Rostedt <rostedt@goodmis.org>2010-01-15 04:38:11 +0100
commitb2af211f284eb1bef19fbb85fc8ef551bb1e7460 (patch)
tree251b3848de7478ad9123c92fc7c95a464bd84f78 /scripts
parentlib: Introduce strnstr() (diff)
downloadlinux-b2af211f284eb1bef19fbb85fc8ef551bb1e7460.tar.xz
linux-b2af211f284eb1bef19fbb85fc8ef551bb1e7460.zip
tracing/filters: Fix MATCH_MIDDLE_ONLY filter matching
The @str might not be NULL-terminated if it's of type DYN_STRING or STATIC_STRING, so we should use strnstr() instead of strstr(). Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> LKML-Reference: <4B4E8753.2000102@cn.fujitsu.com> Acked-by: Frederic Weisbecker <fweisbec@gmail.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions