mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 20:34:23 -04:00
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: 43f84b72c5 ("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>
This commit is contained in:
committed by
David S. Miller
parent
f630c38ef0
commit
df7c7dd250
@@ -356,6 +356,7 @@ static int nfp_flower_init(struct nfp_app *app)
|
||||
|
||||
static void nfp_flower_clean(struct nfp_app *app)
|
||||
{
|
||||
nfp_flower_metadata_cleanup(app);
|
||||
vfree(app->priv);
|
||||
app->priv = NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user