linux-stable/net/mctp
Wei Yongjun 49d8a6e24a mctp: Fix an error handling path in mctp_init()
[ Upstream commit d4072058af ]

If mctp_neigh_init() return error, the routes resources should
be released in the error handling path. Otherwise some resources
leak.

Fixes: 4d8b931928 ("mctp: Add neighbour implementation")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Matt Johnston <matt@codeconstruct.com.au>
Link: https://lore.kernel.org/r/20221108095517.620115-1-weiyongjun@huaweicloud.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-11-16 09:58:22 +01:00
..
af_mctp.c mctp: Fix an error handling path in mctp_init() 2022-11-16 09:58:22 +01:00
device.c mctp: Allow per-netns default networks 2021-07-29 15:06:50 +01:00
Kconfig
Makefile mctp: Add neighbour implementation 2021-07-29 15:06:50 +01:00
neigh.c mctp: Add neighbour netlink interface 2021-07-29 15:06:50 +01:00
route.c mctp: Fix an error handling path in mctp_init() 2022-11-16 09:58:22 +01:00