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)
commit7b55c2ed2ba061b65fc51d7a18d37e017085997f
tree7bb11d107a408320999cb8c48534aecfa0ac0ce4
parentaa1d7e1267c12e07d979aa34c613716a89029db2
ethernet: marvell: octeontx2 Fix resource not freed after malloc

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

Fixes: c54ffc73601c ("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