net_sched: act_bpf: remove unnecessary copy
authorAlexei Starovoitov <ast@plumgrid.com>
Wed, 26 Aug 2015 03:06:32 +0000 (20:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Aug 2015 18:01:44 +0000 (11:01 -0700)
commitfaa54be4c78da6aa2148c539659867afdecd3e8d
tree44eb1ad0bb5bbf322ee607666f9e50f1c82c20d5
parent3c645621b79828be7a46fb2694eb423b343b4bbe
net_sched: act_bpf: remove unnecessary copy

Fix harmless typo and avoid unnecessary copy of empty 'prog' into
unused 'strcut tcf_bpf_cfg old'.

Fixes: f4eaed28c783 ("act_bpf: fix memory leaks when replacing bpf programs")
Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_bpf.c