diff options
author | Zhengchao Shao <shaozhengchao@huawei.com> | 2022-11-08 03:56:07 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-11-09 02:19:23 +0100 |
commit | 519b58bbfa825f042fcf80261cc18e1e35f85ffd (patch) | |
tree | a860a01d73af32e4ca70045e31d14da7ad0851ce /drivers/net/tun.c | |
parent | Merge tag 'linux-can-fixes-for-6.1-20221107' of git://git.kernel.org/pub/scm/... (diff) | |
download | linux-519b58bbfa825f042fcf80261cc18e1e35f85ffd.tar.xz linux-519b58bbfa825f042fcf80261cc18e1e35f85ffd.zip |
net: marvell: prestera: fix memory leak in prestera_rxtx_switch_init()
When prestera_sdma_switch_init() failed, the memory pointed to by
sw->rxtx isn't released. Fix it. Only be compiled, not be tested.
Fixes: 501ef3066c89 ("net: marvell: prestera: Add driver for Prestera family ASIC devices")
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Reviewed-by: Vadym Kochan <vadym.kochan@plvision.eu>
Link: https://lore.kernel.org/r/20221108025607.338450-1-shaozhengchao@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/tun.c')
0 files changed, 0 insertions, 0 deletions