]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit550367d1735ed72ab67f4d55a51be3e48f64920a
tree31955d81e9b694368fd874acd3ca4f9e1d9c7970
parenta35e1543930f3bc28ef7346784280031ca96f7eb
Revert "nfp: abm: fix memory leak in nfp_abm_u32_knode_replace"

This reverts commit 3073e7496ad4 ("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