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)
commit78beef629fd95be4ed853b2d37b832f766bd96ca
tree4f720286e599426e5e946e6203e8126d756fb547
parenta41e8a88b06ee39fad4cb4a8ccf822563560a89c
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