]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tools: ynl: don't ignore errors in NLMSG_DONE messages
authorJakub Kicinski <kuba@kernel.org>
Sat, 20 Apr 2024 02:08:26 +0000 (19:08 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 May 2024 14:32:36 +0000 (16:32 +0200)
commit6a65f015ee4850f588b1afe9e82569a736a4e696
tree7793b5eb579592db3d247611e7e5b1514b9844ae
parent4fee8fa86a15d7790268eea458b1aec69c695530
tools: ynl: don't ignore errors in NLMSG_DONE messages

[ Upstream commit a44f2eb106a46f2275a79de54ce0ea63e4f3d8c8 ]

NLMSG_DONE contains an error code, it has to be extracted.
Prior to this change all dumps will end in success,
and in case of failure the result is silently truncated.

Fixes: e4b48ed460d3 ("tools: ynl: add a completely generic client")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://lore.kernel.org/r/20240420020827.3288615-1-kuba@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/net/ynl/lib/ynl.py