|
@@ -116,12 +116,11 @@ static int cls_cgroup_change(struct net *net, struct sk_buff *in_skb,
|
|
|
if (!new)
|
|
|
return -ENOBUFS;
|
|
|
|
|
|
- if (head) {
|
|
|
+ tcf_exts_init(&new->exts, TCA_CGROUP_ACT, TCA_CGROUP_POLICE);
|
|
|
+ if (head)
|
|
|
new->handle = head->handle;
|
|
|
- } else {
|
|
|
- tcf_exts_init(&new->exts, TCA_CGROUP_ACT, TCA_CGROUP_POLICE);
|
|
|
+ else
|
|
|
new->handle = handle;
|
|
|
- }
|
|
|
|
|
|
new->tp = tp;
|
|
|
err = nla_parse_nested(tb, TCA_CGROUP_MAX, tca[TCA_OPTIONS],
|