textsearch: fix Boyer-Moore text search bug
authorJoonwoo Park <joonwpark81@gmail.com>
Mon, 30 Jun 2008 19:42:23 +0000 (12:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Jun 2008 19:42:23 +0000 (12:42 -0700)
The current logic has a bug which cannot find matching pattern, if the
pattern is matched from the first character of target string.
for example:
pattern=abc, string=abcdefg
pattern=a,   string=abcdefg
Searching algorithm should return 0 for those things.

Signed-off-by: Joonwoo Park <joonwpark81@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/ts_bm.c

diff --cc lib/ts_bm.c
Simple merge