[NET_SCHED]: Use NLA_PUT_STRING for string dumping
Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
4b3550ef53
commit
57e1c487a4
@@ -732,7 +732,7 @@ static int u32_dump(struct tcf_proto *tp, unsigned long fh,
|
||||
|
||||
#ifdef CONFIG_NET_CLS_IND
|
||||
if(strlen(n->indev))
|
||||
NLA_PUT(skb, TCA_U32_INDEV, IFNAMSIZ, n->indev);
|
||||
NLA_PUT_STRING(skb, TCA_U32_INDEV, n->indev);
|
||||
#endif
|
||||
#ifdef CONFIG_CLS_U32_PERF
|
||||
NLA_PUT(skb, TCA_U32_PCNT,
|
||||
|
Reference in New Issue
Block a user