Re: [PATCH net] net/sched: fix NULL pointer dereference in qdisc_alloc()

2017-10-27 Thread Cong Wang
On Thu, Oct 26, 2017 at 11:26 AM, Davide Caratti wrote: > the following script generates a NULL pointer dereference error: > > ip l a name eth0 type dummy > tc q a dev eth0 parent :1 handle 1: htb > > upon creation of classful qdiscs, qdisc_alloc() dereferences dev_queue->dev > assuming it is not

[PATCH net] net/sched: fix NULL pointer dereference in qdisc_alloc()

2017-10-26 Thread Davide Caratti
the following script generates a NULL pointer dereference error: ip l a name eth0 type dummy tc q a dev eth0 parent :1 handle 1: htb upon creation of classful qdiscs, qdisc_alloc() dereferences dev_queue->dev assuming it is not NULL. This is not true when eth0 has been added, but not yet set admi