projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pkt_sched: Stop using NLA_PUT*().
[linux-block.git]
/
net
/
sched
/
sch_fifo.c
diff --git
a/net/sched/sch_fifo.c
b/net/sched/sch_fifo.c
index 66effe2da8e0e65775c563a4fc4771429db45411..e15a9eb29087794ccc71408f467e9ae37f9c086b 100644
(file)
--- a/
net/sched/sch_fifo.c
+++ b/
net/sched/sch_fifo.c
@@
-85,7
+85,8
@@
static int fifo_dump(struct Qdisc *sch, struct sk_buff *skb)
{
struct tc_fifo_qopt opt = { .limit = sch->limit };
- NLA_PUT(skb, TCA_OPTIONS, sizeof(opt), &opt);
+ if (nla_put(skb, TCA_OPTIONS, sizeof(opt), &opt))
+ goto nla_put_failure;
return skb->len;
nla_put_failure: