aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorThomas Bogendoerfer <tsbogend@alpha.franken.de>2008-01-12 18:08:47 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:08:02 -0500
commita24a789cc6b0a736759bd221b0a32f9a240c2f6e (patch)
tree459ceb37bbc49170cd308b0b83589764f9f2b727 /drivers/net
parentbcc52894988ac8471667d84eb7d118af37763338 (diff)
SGISEEQ: fix oops when doing ifconfig down; ifconfig up
When doing init_ring checking whether a new skb needs to be allocated was wrong. Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/sgiseeq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/sgiseeq.c b/drivers/net/sgiseeq.c
index c69bb8ba8b64..78994ede0cb0 100644
--- a/drivers/net/sgiseeq.c
+++ b/drivers/net/sgiseeq.c
@@ -193,7 +193,7 @@ static int seeq_init_ring(struct net_device *dev)
193 193
194 /* And now the rx ring. */ 194 /* And now the rx ring. */
195 for (i = 0; i < SEEQ_RX_BUFFERS; i++) { 195 for (i = 0; i < SEEQ_RX_BUFFERS; i++) {
196 if (!sp->rx_desc[i].rdma.pbuf) { 196 if (!sp->rx_desc[i].skb) {
197 dma_addr_t dma_addr; 197 dma_addr_t dma_addr;
198 struct sk_buff *skb = netdev_alloc_skb(dev, PKT_BUF_SZ); 198 struct sk_buff *skb = netdev_alloc_skb(dev, PKT_BUF_SZ);
199 199