From: Ron Mercer Date: Fri, 13 Feb 2009 00:37:48 +0000 (-0800) Subject: qlge: bugfix: Add missing dev_kfree_skb_any() call. X-Git-Tag: 2.1b_release~13757^2~138 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=06a3d510faf6fdec43daaf6f4d94fe24edf650cd;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c index 5b75fc9..fc7d210 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) if (pci_dma_mapping_error(qdev->pdev, map)) { QPRINTK(qdev, IFUP, ERR, "PCI mapping failed.\n"); rx_ring->sbq_clean_idx = clean_idx; + dev_kfree_skb_any(sbq_desc->p.skb); + sbq_desc->p.skb = NULL; return; } pci_unmap_addr_set(sbq_desc, mapaddr, map);