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

[PATCH] orinoco: limit message rate

Brice Goglin <Brice.Goglin@ens-lyon.org> reports a printk storm from this
driver.  Fix.
Acked-by: default avatarDavid Gibson <hermes@gibson.dropbear.id.au>
Cc: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
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