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.
Signed-off-by: Omar Sandoval <osandov@osandov.com>
---
net/sched/em_text.c | 2 ++
1 file changed, 2 insertions(+)
On Thu, Oct 09, 2014 at 09:05:21AM -0700, Omar Sandoval wrote:
quoted hunk
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.
Signed-off-by: Omar Sandoval <osandov@osandov.com>
---
net/sched/em_text.c | 2 ++
1 file changed, 2 insertions(+)
On Thu, Oct 09, 2014 at 02:48:54PM -0700, Cong Wang wrote:
On Thu, Oct 9, 2014 at 9:05 AM, Omar Sandoval [off-list ref] wrote:
quoted
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
Mm, thanks, I missed that. It looks like every other caller of skb_find_text is
doing an unnecessary memset in that case. Disregard this, I guess.
--
Omar