Skip to content

Commit

Permalink
tools: ynl-gen: always construct struct ynl_req_state
Browse files Browse the repository at this point in the history
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: dc0956c ("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>
  • Loading branch information
Jakub Kicinski committed Nov 29, 2023
1 parent cbeb989 commit 83f2df9
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 55 deletions.
Loading

0 comments on commit 83f2df9

Please sign in to comment.