Commit d06f5187 authored by Dave Jones's avatar Dave Jones Committed by David S. Miller

8139cp: Fix skb leak in rx_status_loop failure path.

Introduced in cf3c4c03
("8139cp: Add dma_mapping_error checking")
Signed-off-by: default avatarDave Jones <davej@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e11aada3
...@@ -524,6 +524,7 @@ static int cp_rx_poll(struct napi_struct *napi, int budget) ...@@ -524,6 +524,7 @@ static int cp_rx_poll(struct napi_struct *napi, int budget)
PCI_DMA_FROMDEVICE); PCI_DMA_FROMDEVICE);
if (dma_mapping_error(&cp->pdev->dev, new_mapping)) { if (dma_mapping_error(&cp->pdev->dev, new_mapping)) {
dev->stats.rx_dropped++; dev->stats.rx_dropped++;
kfree_skb(new_skb);
goto rx_next; goto rx_next;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment