[TEXTSEARCH]: Fix Boyer Moore initialization bug
authorMichael Rash <mbr@cipherdyne.org>
Tue, 22 Aug 2006 07:45:22 +0000 (00:45 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Tue, 22 Aug 2006 21:33:58 +0000 (14:33 -0700)
commit3ffaa8c7c0f884171a273cd2145b8fbbf233ba22
tree78529eb063987ea5f89980670c38c6cc7cba271b
parent316c1592bea94ead75301cb764523661fbbcc1ca
[TEXTSEARCH]: Fix Boyer Moore initialization bug

The pattern is set after trying to compute the prefix table, which tries
to use it. Initialize it before calling compute_prefix_tbl, make
compute_prefix_tbl consistently use only the data from struct ts_bm
and remove the now unnecessary arguments.

Signed-off-by: Michael Rash <mbr@cipherdyne.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/ts_bm.c