Hi all, Today's linux-next merge of the net-next tree got a conflict in net/sched/cls_bpf.c between commit 7913ecf69e24 ("net: cls_bpf: fix size mismatch on filter preparation") from the net tree and commit 33e9fcc666e2 ("tc: cls_bpf: rename bpf_len to bpf_num_ops") from the net-next tree. I fixed it up (see below) and can carry the fix as necessary (no action is required). -- Cheers, Stephen Rothwell sfr@xxxxxxxxxxxxxxxx diff --cc net/sched/cls_bpf.c index f59adf8a4cd7,1029923f9e86..000000000000 --- a/net/sched/cls_bpf.c +++ b/net/sched/cls_bpf.c @@@ -179,12 -179,7 +179,12 @@@ static int cls_bpf_modify_existing(stru goto errout; } - bpf_size = bpf_len * sizeof(*bpf_ops); + bpf_size = bpf_num_ops * sizeof(*bpf_ops); + if (bpf_size != nla_len(tb[TCA_BPF_OPS])) { + ret = -EINVAL; + goto errout; + } + bpf_ops = kzalloc(bpf_size, GFP_KERNEL); if (bpf_ops == NULL) { ret = -ENOMEM;
Attachment:
pgpLW19soGFSD.pgp
Description: OpenPGP digital signature