diff options
| author | Jesus Sanchez-Palencia <[email protected]> | 2017-10-16 18:01:23 -0700 |
|---|---|---|
| committer | Jeff Kirsher <[email protected]> | 2017-10-27 09:41:38 -0700 |
| commit | 26aa0459fad28725aa0bc12a3615cc9a0bd7118f (patch) | |
| tree | 60cc263a4854d9fdf026cbc72a728cfb0ffd163f /tools/perf/scripts/python | |
| parent | c859e21a35ce5604dde0b618169680aa3c7e3bdb (diff) | |
net/sched: Check for null dev_queue on create flow
In qdisc_alloc() the dev_queue pointer was used without any checks
being performed. If qdisc_create() gets a null dev_queue pointer, it
just passes it along to qdisc_alloc(), leading to a crash. That
happens if a root qdisc implements select_queue() and returns a null
dev_queue pointer for an "invalid handle", for example, or if the
dev_queue associated with the parent qdisc is null.
This patch is in preparation for the next in this series, where
select_queue() is being added to mqprio and as it may return a null
dev_queue.
Signed-off-by: Jesus Sanchez-Palencia <[email protected]>
Tested-by: Henrik Austad <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions