diff options
Diffstat (limited to 'net/sched/sch_api.c')
-rw-r--r-- | net/sched/sch_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c index 7abb028dd96b..8db554d54854 100644 --- a/net/sched/sch_api.c +++ b/net/sched/sch_api.c | |||
@@ -834,7 +834,7 @@ static int tc_fill_qdisc(struct sk_buff *skb, struct Qdisc *q, u32 clid, | |||
834 | tcm->tcm_parent = clid; | 834 | tcm->tcm_parent = clid; |
835 | tcm->tcm_handle = q->handle; | 835 | tcm->tcm_handle = q->handle; |
836 | tcm->tcm_info = atomic_read(&q->refcnt); | 836 | tcm->tcm_info = atomic_read(&q->refcnt); |
837 | NLA_PUT(skb, TCA_KIND, IFNAMSIZ, q->ops->id); | 837 | NLA_PUT_STRING(skb, TCA_KIND, q->ops->id); |
838 | if (q->ops->dump && q->ops->dump(q, skb) < 0) | 838 | if (q->ops->dump && q->ops->dump(q, skb) < 0) |
839 | goto nla_put_failure; | 839 | goto nla_put_failure; |
840 | q->qstats.qlen = q->q.qlen; | 840 | q->qstats.qlen = q->q.qlen; |
@@ -1080,7 +1080,7 @@ static int tc_fill_tclass(struct sk_buff *skb, struct Qdisc *q, | |||
1080 | tcm->tcm_parent = q->handle; | 1080 | tcm->tcm_parent = q->handle; |
1081 | tcm->tcm_handle = q->handle; | 1081 | tcm->tcm_handle = q->handle; |
1082 | tcm->tcm_info = 0; | 1082 | tcm->tcm_info = 0; |
1083 | NLA_PUT(skb, TCA_KIND, IFNAMSIZ, q->ops->id); | 1083 | NLA_PUT_STRING(skb, TCA_KIND, q->ops->id); |
1084 | if (cl_ops->dump && cl_ops->dump(q, cl, skb, tcm) < 0) | 1084 | if (cl_ops->dump && cl_ops->dump(q, cl, skb, tcm) < 0) |
1085 | goto nla_put_failure; | 1085 | goto nla_put_failure; |
1086 | 1086 | ||