diff options
author | Jakub Kicinski <kuba@kernel.org> | 2023-11-26 14:58:58 -0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-11-29 08:44:02 -0800 |
commit | 83f2df9d66bc9e1e0dbd5d5586a701088f6a1d42 (patch) | |
tree | 3822914732906cc8c7025f66e8ba09a925f1add7 /tools/build | |
parent | cbeb989e41f4094f54bec2cecce993f26f547bea (diff) |
tools: ynl-gen: always construct struct ynl_req_state
struct ynl_req_state carries reply-related info from generated code
into generic YNL code. While we don't need reply info to execute
a request without a reply, we still need to pass in the struct, because
it's also where we get the pointer to struct ynl_sock from. Passing NULL
results in crashes if kernel returns an error or an unexpected reply.
Fixes: dc0956c98f11 ("tools: ynl-gen: move the response reading logic into YNL")
Link: https://lore.kernel.org/r/20231126225858.2144136-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/build')
0 files changed, 0 insertions, 0 deletions