diff options
author | Jirka Pirko <jirka@pirko.cz> | 2008-11-24 17:48:25 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-24 17:48:25 -0500 |
commit | 138a5cdf2ffe8c6602641f8aaa00cfcf10929fe1 (patch) | |
tree | cec44ab32aadf7f3959acb35cdb838c72ca74858 /drivers/net/tokenring/3c359.c | |
parent | d0cc10ab0e3740b629d88386c907342f77cbdb30 (diff) |
tokenring/3c359.c: Fix error message when allocating tx_ring
Pointed out by Joe Perches. Error message after tx_ring allocation check was
wrong.
Signed-off-by: Jirka Pirko <jirka@jirka.pirko.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tokenring/3c359.c')
-rw-r--r-- | drivers/net/tokenring/3c359.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/tokenring/3c359.c b/drivers/net/tokenring/3c359.c index 7b45a293f5ec..8a43ecd0d6e7 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) | |||
638 | /* These MUST be on 8 byte boundaries */ | 638 | /* These MUST be on 8 byte boundaries */ |
639 | xl_priv->xl_tx_ring = kzalloc((sizeof(struct xl_tx_desc) * XL_TX_RING_SIZE) + 7, GFP_DMA | GFP_KERNEL); | 639 | xl_priv->xl_tx_ring = kzalloc((sizeof(struct xl_tx_desc) * XL_TX_RING_SIZE) + 7, GFP_DMA | GFP_KERNEL); |
640 | if (xl_priv->xl_tx_ring == NULL) { | 640 | if (xl_priv->xl_tx_ring == NULL) { |
641 | printk(KERN_WARNING "%s: Not enough memory to allocate rx buffers.\n", | 641 | printk(KERN_WARNING "%s: Not enough memory to allocate tx buffers.\n", |
642 | dev->name); | 642 | dev->name); |
643 | free_irq(dev->irq,dev); | 643 | free_irq(dev->irq,dev); |
644 | return -ENOMEM; | 644 | return -ENOMEM; |