diff options
author | Cong Wang <[email protected]> | 2017-12-18 14:34:26 -0800 |
---|---|---|
committer | David S. Miller <[email protected]> | 2017-12-19 14:13:12 -0500 |
commit | 1df94c3c5dadbce3df6cc0e989d8c85d43a903d6 (patch) | |
tree | 443baff71ebce34735a8c765852330e6e77f3821 /tools/perf/scripts/python/syscall-counts.py | |
parent | 4eb50ceb5c156a166c0b00ac27f0ff3a0943cdfb (diff) |
net_sched: properly check for empty skb array on error path
First, the check of &q->ring.queue against NULL is wrong, it
is always false. We should check the value rather than the address.
Secondly, we need the same check in pfifo_fast_reset() too,
as both ->reset() and ->destroy() are called in qdisc_destroy().
Fixes: c5ad119fb6c0 ("net: sched: pfifo_fast use skb_array")
Reported-by: syzbot <[email protected]>
Cc: John Fastabend <[email protected]>
Signed-off-by: Cong Wang <[email protected]>
Acked-by: John Fastabend <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions