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>
This commit is contained in:
parent
d0cc10ab0e
commit
138a5cdf2f
1 changed files with 1 additions and 1 deletions
|
@ -638,7 +638,7 @@ static int xl_open(struct net_device *dev)
|
||||||
/* These MUST be on 8 byte boundaries */
|
/* 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);
|
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) {
|
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);
|
dev->name);
|
||||||
free_irq(dev->irq,dev);
|
free_irq(dev->irq,dev);
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
Loading…
Add table
Reference in a new issue