]> git.karo-electronics.de Git - karo-tx-linux.git/commit
TEXTSEARCH: Fix Boyer Moore initialization bug
authorMichael Rash <mbr@cipherdyne.org>
Tue, 22 Aug 2006 02:07:57 +0000 (04:07 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 8 Sep 2006 21:51:36 +0000 (14:51 -0700)
commit940d7bceb97c8989e700de946b0514acc9b739c5
treed29a1d67d562e22313e81c9726618c2ab7e46b05
parentd2350c2ad1463a973b586cadb49c2fa0c83089b8
TEXTSEARCH: Fix Boyer Moore initialization bug

[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: Greg Kroah-Hartman <gregkh@suse.de>
lib/ts_bm.c