Skip to content
Commit 3ffaa8c7 authored by Michael Rash's avatar Michael Rash Committed by David S. Miller
Browse files

[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: default avatarMichael Rash <mbr@cipherdyne.org>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 316c1592
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment