Commit c367c21c authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds
Browse files

[PATCH] orinoco: limit message rate

Brice Goglin <> reports a printk storm from this
driver.  Fix.
Acked-by: default avatarDavid Gibson <>
Cc: Jeff Garzik <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 1c59827d
...@@ -578,6 +578,7 @@ static int orinoco_xmit(struct sk_buff *skb, struct net_device *dev) ...@@ -578,6 +578,7 @@ static int orinoco_xmit(struct sk_buff *skb, struct net_device *dev)
txfid, NULL); txfid, NULL);
if (err) { if (err) {
netif_start_queue(dev); netif_start_queue(dev);
if (net_ratelimit())
printk(KERN_ERR "%s: Error %d transmitting packet\n", printk(KERN_ERR "%s: Error %d transmitting packet\n",
dev->name, err); dev->name, err);
stats->tx_errors++; stats->tx_errors++;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment