]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[TEXTSEARCH]: Fix Boyer Moore initialization bug
authorMichael Rash <mbr@cipherdyne.org>
Mon, 18 Sep 2006 17:26:29 +0000 (19:26 +0200)
committerAdrian Bunk <bunk@stusta.de>
Mon, 18 Sep 2006 17:26:29 +0000 (19:26 +0200)
commitec2ffcb891b9a2d00deb38177e1267516ff2be15
treeaaf9e69ff34064c2912605841279c324010a5b78
parentd03460d51e14fb5a57615a82edd93be97d90f930
[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>
Acked-by: David Miller <davem@davemloft.net>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
lib/ts_bm.c