diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2017-07-06 17:29:05 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-07 09:17:42 +0100 |
commit | df7c7dd2509f5f8e1f230ac71dfbf2846cc1dc0f (patch) | |
tree | 3a13b50ccef4c869b647cb28646b3511125e4a65 /drivers/net/ethernet/netronome/nfp/flower | |
parent | f630c38ef0d785101363a8992bbd4f302180f86f (diff) |
nfp: flower: add missing clean up call to avoid memory leaks
nfp_flower_metadata_cleanup() is defined but never invoked,
not calling it will cause us to leak mask and statistics
queue memory on the host.
Fixes: 43f84b72c50d ("nfp: add metadata to each flow offload")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/netronome/nfp/flower')
-rw-r--r-- | drivers/net/ethernet/netronome/nfp/flower/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/netronome/nfp/flower/main.c b/drivers/net/ethernet/netronome/nfp/flower/main.c index fc10f27e0a0c..6a65c8b33807 100644 --- a/drivers/net/ethernet/netronome/nfp/flower/main.c +++ b/drivers/net/ethernet/netronome/nfp/flower/main.c @@ -356,6 +356,7 @@ err_free_app_priv: static void nfp_flower_clean(struct nfp_app *app) { + nfp_flower_metadata_cleanup(app); vfree(app->priv); app->priv = NULL; } |