mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 02:24:24 +02: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:
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user