diff options
author | Dave Jones <davej@redhat.com> | 2013-08-09 22:16:34 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-09 22:17:03 +0400 |
commit | d06f5187469eee1b2932c02fd093d113cfc60d5e (patch) | |
tree | 17a1a90728400b6161e54ed45514a8887feec195 /drivers/net/ethernet | |
parent | e11aada32b39a060e26fa4091cb968bd42e3bcbf (diff) | |
download | linux-d06f5187469eee1b2932c02fd093d113cfc60d5e.tar.xz |
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')
-rw-r--r-- | drivers/net/ethernet/realtek/8139cp.c | 1 |
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; } |