git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ae3689
)
net/sfc: fix DMA memory leak after kvarg processing failure
author
Andrew Rybchenko
<arybchenko@solarflare.com>
Wed, 13 Dec 2017 07:12:18 +0000
(07:12 +0000)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000
(18:47 +0100)
Fixes:
e56fa9c23e7a
("net/sfc: add kvarg control for MAC statistics update period")
Cc: stable@dpdk.org
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: Ivan Malov <ivan.malov@oktetlabs.ru>
drivers/net/sfc/sfc_port.c
patch
|
blob
|
history
diff --git
a/drivers/net/sfc/sfc_port.c
b/drivers/net/sfc/sfc_port.c
index
d71ec18
..
6cfd0e3
100644
(file)
--- a/
drivers/net/sfc/sfc_port.c
+++ b/
drivers/net/sfc/sfc_port.c
@@
-404,6
+404,8
@@
sfc_port_attach(struct sfc_adapter *sa)
return 0;
fail_kvarg_stats_update_period_ms:
+ sfc_dma_free(sa, &port->mac_stats_dma_mem);
+
fail_mac_stats_dma_alloc:
rte_free(port->mac_stats_buf);