Fixes: e56fa9c23e7a ("net/sfc: add kvarg control for MAC statistics update
period")
Cc: [email protected]
Signed-off-by: Andrew Rybchenko <[email protected]>
Reviewed-by: Ivan Malov <[email protected]>
---
drivers/net/sfc/sfc_port.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/sfc/sfc_port.c b/drivers/net/sfc/sfc_port.c
index d71ec18..6cfd0e3 100644
--- 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);
--
2.7.4