Skip to content

Commit

Permalink
SGISEEQ: fix oops when doing ifconfig down; ifconfig up
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thomas Bogendoerfer authored and David S. Miller committed Jan 28, 2008
1 parent bcc5289 commit a24a789
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/sgiseeq.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ static int seeq_init_ring(struct net_device *dev)

/* And now the rx ring. */
for (i = 0; i < SEEQ_RX_BUFFERS; i++) {
if (!sp->rx_desc[i].rdma.pbuf) {
if (!sp->rx_desc[i].skb) {
dma_addr_t dma_addr;
struct sk_buff *skb = netdev_alloc_skb(dev, PKT_BUF_SZ);

Expand Down

0 comments on commit a24a789

Please sign in to comment.