OSDN Git Service

Revert "nfp: abm: fix memory leak in nfp_abm_u32_knode_replace"
authorJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 10 Dec 2019 18:20:32 +0000 (10:20 -0800)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Sat, 14 Dec 2019 02:13:22 +0000 (18:13 -0800)
commit1d1997db870f4058676439ef7014390ba9e24eb2
tree31955d81e9b694368fd874acd3ca4f9e1d9c7970
parent1f4782ae2457cdd5b0e4fa0c897b5c5883cc0392
Revert "nfp: abm: fix memory leak in nfp_abm_u32_knode_replace"

This reverts commit 78beef629fd9 ("nfp: abm: fix memory leak in
nfp_abm_u32_knode_replace").

The quoted commit does not fix anything and resulted in a bogus
CVE-2019-19076.

If match is NULL then it is known there is no matching entry in
list, hence, calling nfp_abm_u32_knode_delete() is pointless.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: John Hurley <john.hurley@netronome.com>
drivers/net/ethernet/netronome/nfp/abm/cls.c