diff options
| author | Jakub Kicinski <[email protected]> | 2023-11-26 22:58:58 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2023-11-29 16:44:02 +0000 |
| commit | 83f2df9d66bc9e1e0dbd5d5586a701088f6a1d42 (patch) | |
| tree | 3822914732906cc8c7025f66e8ba09a925f1add7 /net/unix/af_unix.c | |
| parent | ethtool: don't propagate EOPNOTSUPP from dumps (diff) | |
| download | kernel-83f2df9d66bc9e1e0dbd5d5586a701088f6a1d42.tar.gz kernel-83f2df9d66bc9e1e0dbd5d5586a701088f6a1d42.zip | |
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/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
