]> git.baikalelectronics.ru Git - kernel.git/commit
qfq: don't leak skb if kzalloc fails
authorFlorian Westphal <fw@strlen.de>
Wed, 8 Jun 2016 21:23:01 +0000 (23:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Jun 2016 05:41:38 +0000 (22:41 -0700)
commit3dd0432045b5b96ea4c9a1eda96f653b4a9eeb15
tree46e9aa1152e7e6b7f9150ff41070e023a83e7a70
parentc8100d008cb0c3f3902af3b13b11a67faa5c5de1
qfq: don't leak skb if kzalloc fails

When we need to create a new aggregate to enqueue the skb we call kzalloc.
If that fails we returned ENOBUFS without freeing the skb.

Spotted during code review.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_qfq.c