]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/sched/sch_generic.c
[NET]: Fix dev->qdisc race for NETDEV_TX_LOCKED case
[net-next-2.6.git] / net / sched / sch_generic.c
index 3385ee5925418d73da404e429c33b20f6db9f4a1..a8240c578772d402ea8bd510f901ff25154e4f66 100644 (file)
@@ -139,6 +139,7 @@ static inline int qdisc_restart(struct net_device *dev)
                                }
                                if (ret == NETDEV_TX_LOCKED && nolock) {
                                        spin_lock(&dev->queue_lock);
+                                       q = dev->qdisc;
                                        goto collision;
                                }
                        }