summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/realtek
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2013-08-09 20:16:34 +0200
committerDavid S. Miller <davem@davemloft.net>2013-08-09 20:17:03 +0200
commitd06f5187469eee1b2932c02fd093d113cfc60d5e (patch)
tree17a1a90728400b6161e54ed45514a8887feec195 /drivers/net/ethernet/realtek
parentnet: flow_dissector: add 802.1ad support (diff)
downloadlinux-d06f5187469eee1b2932c02fd093d113cfc60d5e.tar.xz
linux-d06f5187469eee1b2932c02fd093d113cfc60d5e.zip
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>
Diffstat (limited to 'drivers/net/ethernet/realtek')
-rw-r--r--drivers/net/ethernet/realtek/8139cp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/realtek/8139cp.c b/drivers/net/ethernet/realtek/8139cp.c
index 6f35f8404d68..d2e591955bdd 100644
--- a/drivers/net/ethernet/realtek/8139cp.c
+++ b/drivers/net/ethernet/realtek/8139cp.c
@@ -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;
}