Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 287513
b: refs/heads/master
c: 7e2eb99
h: refs/heads/master
i:
  287511: 40ae308
v: v3
  • Loading branch information
Thadeu Lima de Souza Cascardo authored and David S. Miller committed Feb 6, 2012
1 parent b3f88f4 commit 9d6ff94
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 68355f71132bec25e0d89b2d8d3ed01286307d31
refs/heads/master: 7e2eb99cc6207e4464f018f72c67c55f2b1c93a4
6 changes: 5 additions & 1 deletion trunk/drivers/net/ethernet/mellanox/mlx4/en_rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,12 @@ static int mlx4_en_prepare_rx_desc(struct mlx4_en_priv *priv,
return 0;

err:
while (i--)
while (i--) {
dma_addr_t dma = be64_to_cpu(rx_desc->data[i].addr);
pci_unmap_single(priv->mdev->pdev, dma, skb_frags[i].size,
PCI_DMA_FROMDEVICE);
put_page(skb_frags[i].page);
}
return -ENOMEM;
}

Expand Down

0 comments on commit 9d6ff94

Please sign in to comment.