mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 14:13:16 +00:00
beaeecbb9f
SVN-Revision: 5635
15 lines
473 B
Diff
15 lines
473 B
Diff
--- linux.old/net/sched/sch_generic.c 2006-11-24 02:42:23.000000000 +0100
|
|
+++ linux.dev/net/sched/sch_generic.c 2006-11-24 02:36:58.000000000 +0100
|
|
@@ -84,6 +84,11 @@
|
|
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. */
|