diff options
Diffstat (limited to 'net/sched/act_api.c')
-rw-r--r-- | net/sched/act_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sched/act_api.c b/net/sched/act_api.c index 36022605fc16..e33e43abe969 100644 --- a/net/sched/act_api.c +++ b/net/sched/act_api.c | |||
@@ -121,7 +121,7 @@ static int tcf_del_walker(struct sk_buff *skb, struct tc_action *a, | |||
121 | nest = nla_nest_start(skb, a->order); | 121 | nest = nla_nest_start(skb, a->order); |
122 | if (nest == NULL) | 122 | if (nest == NULL) |
123 | goto nla_put_failure; | 123 | goto nla_put_failure; |
124 | NLA_PUT(skb, TCA_KIND, IFNAMSIZ, a->ops->kind); | 124 | NLA_PUT_STRING(skb, TCA_KIND, a->ops->kind); |
125 | for (i = 0; i < (hinfo->hmask + 1); i++) { | 125 | for (i = 0; i < (hinfo->hmask + 1); i++) { |
126 | p = hinfo->htab[tcf_hash(i, hinfo->hmask)]; | 126 | p = hinfo->htab[tcf_hash(i, hinfo->hmask)]; |
127 | 127 | ||
@@ -423,7 +423,7 @@ tcf_action_dump_1(struct sk_buff *skb, struct tc_action *a, int bind, int ref) | |||
423 | if (a->ops == NULL || a->ops->dump == NULL) | 423 | if (a->ops == NULL || a->ops->dump == NULL) |
424 | return err; | 424 | return err; |
425 | 425 | ||
426 | NLA_PUT(skb, TCA_KIND, IFNAMSIZ, a->ops->kind); | 426 | NLA_PUT_STRING(skb, TCA_KIND, a->ops->kind); |
427 | if (tcf_action_copy_stats(skb, a, 0)) | 427 | if (tcf_action_copy_stats(skb, a, 0)) |
428 | goto nla_put_failure; | 428 | goto nla_put_failure; |
429 | nest = nla_nest_start(skb, TCA_OPTIONS); | 429 | nest = nla_nest_start(skb, TCA_OPTIONS); |