octeontx2-pf: mcs: fix possible memory leak in otx2_probe()
commit 6297e1444c661dad91c3b1ffffc0a9f796201c36 from git@git.assembla.com:cavium/WindRiver.linux.git In error path after calling cn10k_mcs_init(), cn10k_mcs_free() need be called to avoid memory leak. Fixes: f6aeb48748b2 ("octeontx2-pf: mcs: Introduce MACSEC hardware offloading") Signed-off-by:Yang Yingliang <yangyingliang@huawei.com> Signed-off-by:
David S. Miller <davem@davemloft.net> Change-Id: I64e0953e70204eccab940c611c282a7e11132ec6 Reviewed-on: https://sj1git1.cavium.com/c/IP/SW/kernel/linux/+/90162 Tested-by:
Sunil Kovvuri Goutham <sgoutham@marvell.com> Reviewed-by:
Sunil Kovvuri Goutham <sgoutham@marvell.com> Signed-off-by:
Beniamin Sandu <beniamin.sandu@windriver.com>
Loading
Please register or sign in to comment