diff -ruN linux-orig/net/core/skbuff.c linux-new/net/core/skbuff.c --- linux-orig/net/core/skbuff.c 2006-06-25 01:26:02.000000000 -0400 +++ linux-new/net/core/skbuff.c 2006-06-25 01:29:40.000000000 -0400 @@ -1739,12 +1739,15 @@ unsigned int to, struct ts_config *config, struct ts_state *state) { + unsigned int ret; + config->get_next_block = skb_ts_get_next_block; config->finish = skb_ts_finish; skb_prepare_seq_read(skb, from, to, TS_SKB_CB(state)); - return textsearch_find(config, state); + ret = textsearch_find(config, state); + return (ret <= to - from ? ret : UINT_MAX); } /**