summaryrefslogtreecommitdiffstats
path: root/net/sched
diff options
context:
space:
mode:
authorDavid S. Miller2012-07-19 20:17:30 +0200
committerDavid S. Miller2012-07-19 20:17:30 +0200
commitabaa72d7fd9a20a67b62e6afa0e746e27851dc33 (patch)
treeebe4134fcc93a6e205e6004b3e652d7a62281651 /net/sched
parentnet-tcp: Fast Open client - cookie-less mode (diff)
parentMerge tag 'md-3.5-fixes' of git://neil.brown.name/md (diff)
downloadkernel-qcow2-linux-abaa72d7fd9a20a67b62e6afa0e746e27851dc33.tar.gz
kernel-qcow2-linux-abaa72d7fd9a20a67b62e6afa0e746e27851dc33.tar.xz
kernel-qcow2-linux-abaa72d7fd9a20a67b62e6afa0e746e27851dc33.zip
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts: drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
Diffstat (limited to 'net/sched')
-rw-r--r--net/sched/sch_sfb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sched/sch_sfb.c b/net/sched/sch_sfb.c
index 74305c883bd3..30ea4674cabd 100644
--- a/net/sched/sch_sfb.c
+++ b/net/sched/sch_sfb.c
@@ -570,6 +570,8 @@ static int sfb_dump(struct Qdisc *sch, struct sk_buff *skb)
sch->qstats.backlog = q->qdisc->qstats.backlog;
opts = nla_nest_start(skb, TCA_OPTIONS);
+ if (opts == NULL)
+ goto nla_put_failure;
if (nla_put(skb, TCA_SFB_PARMS, sizeof(opt), &opt))
goto nla_put_failure;
return nla_nest_end(skb, opts);