Patchwork tokenring/3c359.c: Fix error message when allocating tx_ring

login
register
mail settings
Submitter Jirka Pirko
Date Nov. 23, 2008, 8:22 p.m.
Message ID <20081123212222.45121ffe@jirka.pirko.cz>
Download mbox | patch
Permalink /patch/10333/
State Accepted
Delegated to: David Miller
Headers show

Comments

Jirka Pirko - Nov. 23, 2008, 8:22 p.m.
Pointed out by Joe Perches. Error message after tx_ring allocation check was
wrong.

Signed-off-by: Jirka Pirko <jirka@jirka.pirko.cz>
---
 drivers/net/tokenring/3c359.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
David Miller - Nov. 24, 2008, 10:48 p.m.
From: Jirka Pirko <jirka@pirko.cz>
Date: Sun, 23 Nov 2008 21:22:22 +0100

> Pointed out by Joe Perches. Error message after tx_ring allocation check was
> wrong.
> 
> Signed-off-by: Jirka Pirko <jirka@jirka.pirko.cz>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/drivers/net/tokenring/3c359.c b/drivers/net/tokenring/3c359.c
index f832f9b..46fb308 100644
--- a/drivers/net/tokenring/3c359.c
+++ b/drivers/net/tokenring/3c359.c
@@ -638,7 +638,7 @@  static int xl_open(struct net_device *dev)
 	/* These MUST be on 8 byte boundaries */
 	xl_priv->xl_tx_ring = kzalloc((sizeof(struct xl_tx_desc) * XL_TX_RING_SIZE) + 7, GFP_DMA | GFP_KERNEL);
 	if (xl_priv->xl_tx_ring == NULL) {
-		printk(KERN_WARNING "%s: Not enough memory to allocate rx buffers.\n",
+		printk(KERN_WARNING "%s: Not enough memory to allocate tx buffers.\n",
 				     dev->name);
 		free_irq(dev->irq,dev);
 		return -ENOMEM;