summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_sockmap_listen.c
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2023-11-26 14:58:58 -0800
committerJakub Kicinski <kuba@kernel.org>2023-11-29 08:44:02 -0800
commit83f2df9d66bc9e1e0dbd5d5586a701088f6a1d42 (patch)
tree3822914732906cc8c7025f66e8ba09a925f1add7 /tools/testing/selftests/bpf/progs/test_sockmap_listen.c
parentcbeb989e41f4094f54bec2cecce993f26f547bea (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/testing/selftests/bpf/progs/test_sockmap_listen.c')
0 files changed, 0 insertions, 0 deletions