Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 10929
b: refs/heads/master
c: d8840ac
h: refs/heads/master
i:
  10927: d1fe9cb
v: v3
  • Loading branch information
Alexey Dobriyan authored and Jeff Garzik committed Oct 28, 2005
1 parent a9bfbcb commit 9096b27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 712cb1ebb1653538527500165d8382ca48a7fca1
refs/heads/master: d8840ac907c7943bc7e196b11812adfa95cb28ef
4 changes: 3 additions & 1 deletion trunk/drivers/net/starfire.c
Original file line number Diff line number Diff line change
Expand Up @@ -1091,8 +1091,10 @@ static int netdev_open(struct net_device *dev)
rx_ring_size = sizeof(struct starfire_rx_desc) * RX_RING_SIZE;
np->queue_mem_size = tx_done_q_size + rx_done_q_size + tx_ring_size + rx_ring_size;
np->queue_mem = pci_alloc_consistent(np->pci_dev, np->queue_mem_size, &np->queue_mem_dma);
if (np->queue_mem == 0)
if (np->queue_mem == NULL) {
free_irq(dev->irq, dev);
return -ENOMEM;
}

np->tx_done_q = np->queue_mem;
np->tx_done_q_dma = np->queue_mem_dma;
Expand Down

0 comments on commit 9096b27

Please sign in to comment.