]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: flower: add missing clean up call to avoid memory leaks
authorJakub Kicinski <jakub.kicinski@netronome.com>
Fri, 7 Jul 2017 00:29:05 +0000 (17:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Jul 2017 08:17:42 +0000 (09:17 +0100)
commitdf7c7dd2509f5f8e1f230ac71dfbf2846cc1dc0f
tree3a13b50ccef4c869b647cb28646b3511125e4a65
parentf630c38ef0d785101363a8992bbd4f302180f86f
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>
drivers/net/ethernet/netronome/nfp/flower/main.c