From: Cong Wang <xiyou.wangc...@gmail.com> Date: Tue, 26 May 2015 16:08:48 -0700
> For mq qdisc, we add per tx queue qdisc to root qdisc > for display purpose, however, that happens too early, > before the new dev->qdisc is finally set, this causes > q->list points to an old root qdisc which is going to be > freed right before assigning with a new one. > > Fix this by moving ->attach() after setting dev->qdisc. > > For the record, this fixes the following crash: ... > For long term, we probably need to clean up the qdisc_graft() code > in case it hides other bugs like this. > > Fixes: 95dc19299f74 ("pkt_sched: give visibility to mq slave qdiscs") > Cc: Jamal Hadi Salim <j...@mojatatu.com> > Signed-off-by: Cong Wang <xiyou.wangc...@gmail.com> Applied, and queued up for -stable, thanks! -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html