Skip to contentSkip to conversation

linux-next: manual merge of the net-next tree with the net tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Jan 28, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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).

Signature · 21 lines
Cheers,
Stephen Rothwell                    [email protected]

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;
#1 lore raw

On 01/28/2015 02:02 AM, Stephen Rothwell wrote:
...

Quoted 2 lines

I fixed it up (see below) and can carry the fix as necessary (no action is required).

Looks good, thanks!