projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27c1c98
)
8139cp: Fix skb leak in rx_status_loop failure path.
author
Dave Jones
<davej@redhat.com>
Fri, 9 Aug 2013 18:16:34 +0000
(11:16 -0700)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sat, 14 Sep 2013 13:54:54 +0000
(06:54 -0700)
[ Upstream commit
d06f5187469eee1b2932c02fd093d113cfc60d5e
]
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/realtek/8139cp.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/realtek/8139cp.c
b/drivers/net/ethernet/realtek/8139cp.c
index 887aebea298b1e00ad1079a17ffc1b70c7e5b107..9095ff930f2979168f3f716f220fa63661ebba3e 100644
(file)
--- 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;
}