From: Cong Wang <xiyou.wangc...@gmail.com> Date: Mon, 18 Dec 2017 14:34:26 -0800
> 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 <syzkal...@googlegroups.com> > Cc: John Fastabend <john.fastab...@gmail.com> > Signed-off-by: Cong Wang <xiyou.wangc...@gmail.com> Applied, thanks Cong.