diff options
author | Ron Mercer <ron.mercer@qlogic.com> | 2009-02-12 19:37:32 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-12 19:37:32 -0500 |
commit | f2603c2c571978497019a50c4df84c185ffef356 (patch) | |
tree | 7f2620ee0e8b95748f92c692ab08837fdb1114d4 /drivers/net/qlge | |
parent | 6497b607fb2d918e7588338761bfc6d53f49eeea (diff) |
qlge: bugfix: Add missing put_page() call.
We put the page 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/qlge')
-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 69f7d057dd27..5b75fc9a26ba 100644 --- a/drivers/net/qlge/qlge_main.c +++ b/drivers/net/qlge/qlge_main.c | |||
@@ -907,6 +907,8 @@ static void ql_update_lbq(struct ql_adapter *qdev, struct rx_ring *rx_ring) | |||
907 | 0, PAGE_SIZE, | 907 | 0, PAGE_SIZE, |
908 | PCI_DMA_FROMDEVICE); | 908 | PCI_DMA_FROMDEVICE); |
909 | if (pci_dma_mapping_error(qdev->pdev, map)) { | 909 | if (pci_dma_mapping_error(qdev->pdev, map)) { |
910 | put_page(lbq_desc->p.lbq_page); | ||
911 | lbq_desc->p.lbq_page = NULL; | ||
910 | QPRINTK(qdev, RX_STATUS, ERR, | 912 | QPRINTK(qdev, RX_STATUS, ERR, |
911 | "PCI mapping failed.\n"); | 913 | "PCI mapping failed.\n"); |
912 | return; | 914 | return; |