1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-09-03 20:25:52 +03:00
openwrt-xburst/target/linux/brcm-2.4/patches/011-wl_qdisc_war.patch
florian 55877ca580 [brcm-2.4] update to 2.4.37, tested on wrt54gs (#4766)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16144 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-28 15:55:54 +00:00

15 lines
426 B
Diff

--- a/net/sched/sch_generic.c
+++ b/net/sched/sch_generic.c
@@ -84,6 +84,11 @@ int qdisc_restart(struct net_device *dev
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. */