projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85920d4
)
tokenring/3c359.c: fix allocation null check
author
Jirka Pirko
<jirka@pirko.cz>
Mon, 24 Nov 2008 22:47:53 +0000
(14:47 -0800)
committer
David S. Miller
<davem@davemloft.net>
Mon, 24 Nov 2008 22:47:53 +0000
(14:47 -0800)
Fixed typo when allocating rx_ring, tx_ring was checked for null instead.
Signed-off-by: Jirka Pirko <jirka@pirko.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tokenring/3c359.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/tokenring/3c359.c
b/drivers/net/tokenring/3c359.c
index 87509a65b3bfa6fd8ab8fd8d071a842637181195..7b45a293f5ecb8ed525d0d866f02b53ce3e4c226 100644
(file)
--- a/
drivers/net/tokenring/3c359.c
+++ b/
drivers/net/tokenring/3c359.c
@@
-644,7
+644,7
@@
static int xl_open(struct net_device *dev)
return -ENOMEM;
}
xl_priv->xl_rx_ring = kzalloc((sizeof(struct xl_rx_desc) * XL_RX_RING_SIZE) +7, GFP_DMA | GFP_KERNEL);
- if (xl_priv->xl_
t
x_ring == NULL) {
+ if (xl_priv->xl_
r
x_ring == NULL) {
printk(KERN_WARNING "%s: Not enough memory to allocate rx buffers.\n",
dev->name);
free_irq(dev->irq,dev);