]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: abm: fix memory leak in nfp_abm_u32_knode_replace
authorNavid Emamdoost <navid.emamdoost@gmail.com>
Fri, 27 Sep 2019 01:51:46 +0000 (20:51 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Sep 2019 18:55:51 +0000 (20:55 +0200)
commit2fd5d5adabae280926f9621f963cdfa07f861325
tree4f720286e599426e5e946e6203e8126d756fb547
parente6d5a47929fd07c104fa60332dee59802ca13ff5
nfp: abm: fix memory leak in nfp_abm_u32_knode_replace

In nfp_abm_u32_knode_replace if the allocation for match fails it should
go to the error handling instead of returning. Updated other gotos to
have correct errno returned, too.

Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/abm/cls.c