8139cp: Fix skb leak in rx_status_loop failure path.
Introduced in cf3c4c03060b688cbc389ebc5065ebcce5653e96 ("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:
parent
e11aada32b
commit
d06f518746
@ -524,6 +524,7 @@ rx_status_loop:
|
||||
PCI_DMA_FROMDEVICE);
|
||||
if (dma_mapping_error(&cp->pdev->dev, new_mapping)) {
|
||||
dev->stats.rx_dropped++;
|
||||
kfree_skb(new_skb);
|
||||
goto rx_next;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user