diff options
author | Ron Mercer <ron.mercer@qlogic.com> | 2009-02-12 19:37:48 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-12 19:37:48 -0500 |
commit | 06a3d510faf6fdec43daaf6f4d94fe24edf650cd (patch) | |
tree | b09369c6f3091f07f5c06070f7106a6c85ef04a7 /drivers/net | |
parent | f2603c2c571978497019a50c4df84c185ffef356 (diff) |
qlge: bugfix: Add missing dev_kfree_skb_any() call.
We put the skb back if we can't get mapping for it. We don't
want unmapped buffers on our receive buffer queue.
Signed-off-by: Ron Mercer <ron.mercer@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/qlge/qlge_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c index 5b75fc9a26ba..fc7d210ec96b 100644 --- a/drivers/net/qlge/qlge_main.c +++ b/drivers/net/qlge/qlge_main.c | |||
@@ -970,6 +970,8 @@ static void ql_update_sbq(struct ql_adapter *qdev, struct rx_ring *rx_ring) | |||
970 | if (pci_dma_mapping_error(qdev->pdev, map)) { | 970 | if (pci_dma_mapping_error(qdev->pdev, map)) { |
971 | QPRINTK(qdev, IFUP, ERR, "PCI mapping failed.\n"); | 971 | QPRINTK(qdev, IFUP, ERR, "PCI mapping failed.\n"); |
972 | rx_ring->sbq_clean_idx = clean_idx; | 972 | rx_ring->sbq_clean_idx = clean_idx; |
973 | dev_kfree_skb_any(sbq_desc->p.skb); | ||
974 | sbq_desc->p.skb = NULL; | ||
973 | return; | 975 | return; |
974 | } | 976 | } |
975 | pci_unmap_addr_set(sbq_desc, mapaddr, map); | 977 | pci_unmap_addr_set(sbq_desc, mapaddr, map); |