diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2017-07-07 02:29:05 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-07 10:17:42 +0200 |
commit | df7c7dd2509f5f8e1f230ac71dfbf2846cc1dc0f (patch) | |
tree | 3a13b50ccef4c869b647cb28646b3511125e4a65 /drivers/net/ethernet/netronome | |
parent | vrf: fix bug_on triggered by rx when destroying a vrf (diff) | |
download | linux-df7c7dd2509f5f8e1f230ac71dfbf2846cc1dc0f.tar.xz linux-df7c7dd2509f5f8e1f230ac71dfbf2846cc1dc0f.zip |
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')
-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; } |