net: act_bpf: fix size mismatch on filter preparation
authorDaniel Borkmann <dborkman@redhat.com>
Thu, 22 Jan 2015 09:58:19 +0000 (10:58 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Jan 2015 00:08:55 +0000 (16:08 -0800)
commitfd3e646c87ab3f2ba98aa25394581af27cc78dc5
tree128691c3cc72ec24880bf538eddf81283d8fb0be
parent1c1bc6bdb7f529eb3383b6e34a0ea327d7e9f615
net: act_bpf: fix size mismatch on filter preparation

Similarly as in cls_bpf, also this code needs to reject mismatches.

Reference: http://article.gmane.org/gmane.linux.network/347406
Fixes: d23b8ad8ab23 ("tc: add BPF based action")
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Jiri Pirko <jiri@resnulli.us>
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_bpf.c