Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sch_sfb: Fix missing NULL check

Resolves-bug: https://bugzilla.kernel.org/show_bug.cgi?id=44461

Signed-off-by: Alan Cox <alan@linux.intel.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Alan Cox and committed by
David S. Miller
7ac2908e c1f5163d

+2
+2
net/sched/sch_sfb.c
··· 570 570 571 571 sch->qstats.backlog = q->qdisc->qstats.backlog; 572 572 opts = nla_nest_start(skb, TCA_OPTIONS); 573 + if (opts == NULL) 574 + goto nla_put_failure; 573 575 if (nla_put(skb, TCA_SFB_PARMS, sizeof(opt), &opt)) 574 576 goto nla_put_failure; 575 577 return nla_nest_end(skb, opts);