8139cp: Fix skb leak in rx_status_loop failure path.

Introduced in cf3c4c0306
("8139cp: Add dma_mapping_error checking")

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Dave Jones 2013-08-09 11:16:34 -07:00 committed by David S. Miller
parent e11aada32b
commit d06f518746

View file

@ -524,6 +524,7 @@ static int cp_rx_poll(struct napi_struct *napi, int budget)
PCI_DMA_FROMDEVICE);
if (dma_mapping_error(&cp->pdev->dev, new_mapping)) {
dev->stats.rx_dropped++;
kfree_skb(new_skb);
goto rx_next;
}