OpenCloudOS-Kernel/tools/net/ynl
Jakub Kicinski a702e98833 tools: ynl: don't leak mcast_groups on init error
[ Upstream commit 5d78b73e851455d525a064f3b042b29fdc0c1a4a ]

Make sure to free the already-parsed mcast_groups if
we don't get an ack from the kernel when reading family info.
This is part of the ynl_sock_create() error path, so we won't
get a call to ynl_sock_destroy() to free them later.

Fixes: 86878f14d7 ("tools: ynl: user space helpers")
Acked-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Link: https://lore.kernel.org/r/20240220161112.2735195-3-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-01 13:35:09 +01:00
..
generated netlink: specs: devlink: fix reply command values 2023-10-13 17:27:27 -07:00
lib tools: ynl: don't leak mcast_groups on init error 2024-03-01 13:35:09 +01:00
samples ynl: print xdp-zc-max-segs in the sample 2023-07-28 09:33:12 -07:00
Makefile ynl: regenerate all headers 2023-07-28 09:33:12 -07:00
Makefile.deps tools: ynl: improve the direct-include header guard logic 2023-06-22 19:47:02 -07:00
cli.py tools/net/ynl: Add support for create flags 2023-08-27 17:17:10 -07:00
ethtool.py tools: ynl: Rename ethtool to ethtool.py 2023-04-13 22:18:29 -07:00
requirements.txt tools: ynl: add the Python requirements.txt file 2023-03-24 19:11:02 -07:00
ynl-gen-c.py tools: ynl-gen: fix uAPI generation after tempfile changes 2023-08-25 18:56:48 -07:00
ynl-regen.sh ynl: regenerate all headers 2023-07-28 09:33:12 -07:00