Re: [PATCH] net sched: text ematch: zero out ts_state before using it

From: Cong Wang
Date: Thu Oct 09 2014 - 17:49:06 EST


On Thu, Oct 9, 2014 at 9:05 AM, Omar Sandoval <osandov@xxxxxxxxxxx> wrote:
> textsearch_find zeroes out the offset, but the control buffer (which may or may
> not matter in this case) needs to be zeroed out as well.

Why? skb_prepare_seq_read() initializes the cb.

Also, the comment says:

* @state: uninitialized textsearch state variable
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/