2009-05-28 23:55:54 +08:00
|
|
|
--- a/net/sched/sch_generic.c
|
|
|
|
+++ b/net/sched/sch_generic.c
|
2008-05-19 21:45:06 +08:00
|
|
|
@@ -84,6 +84,11 @@ int qdisc_restart(struct net_device *dev
|
2006-11-24 09:48:23 +08:00
|
|
|
struct sk_buff *skb;
|
|
|
|
|
|
|
|
/* Dequeue packet */
|
|
|
|
+ if (!q) {
|
|
|
|
+ if (net_ratelimit())
|
|
|
|
+ printk(KERN_DEBUG "HELP ME! qdisc_restart called, but no Qdisc!\n");
|
|
|
|
+ return 0;
|
|
|
|
+ }
|
|
|
|
if ((skb = q->dequeue(q)) != NULL) {
|
|
|
|
if (spin_trylock(&dev->xmit_lock)) {
|
|
|
|
/* Remember that the driver is grabbed by us. */
|