Skip to content
Commit 24bf1931 authored by Yang Yingliang's avatar Yang Yingliang Committed by Kevin Hao
Browse files

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: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Change-Id: I64e0953e70204eccab940c611c282a7e11132ec6
Reviewed-on: https://sj1git1.cavium.com/c/IP/SW/kernel/linux/+/90162


Tested-by: default avatarSunil Kovvuri Goutham <sgoutham@marvell.com>
Reviewed-by: default avatarSunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: default avatarBeniamin Sandu <beniamin.sandu@windriver.com>
parent f9f1a53c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment