]> git.baikalelectronics.ru Git - kernel.git/commit
ethernet: marvell: octeontx2 Fix resource not freed after malloc
authorManank Patel <pmanank200502@gmail.com>
Tue, 18 Oct 2022 05:33:18 +0000 (11:03 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Oct 2022 12:43:41 +0000 (13:43 +0100)
commit4e6c0ca61887ab10f01908e2073fcddb0733d815
tree7bb11d107a408320999cb8c48534aecfa0ac0ce4
parentee36dc00ee6387e0c2f53f1f44ceb29d74c9ed2a
ethernet: marvell: octeontx2 Fix resource not freed after malloc

fix rxsc and txsc not getting freed before going out of scope

Fixes: a500032f7534 ("octeontx2-pf: mcs: Introduce MACSEC hardware offloading")
Signed-off-by: Manank Patel <pmanank200502@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/nic/cn10k_macsec.c