diff options
| author | Jakub Kicinski <[email protected]> | 2023-02-23 18:31:39 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2023-02-24 19:55:47 +0000 |
| commit | f7cf644796fcdb6a0e30e4a7f218be74ac8cb31d (patch) | |
| tree | 8ebba2c9e6244391b2acc88b6966faf2c2363f92 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
| parent | net: fix __dev_kfree_skb_any() vs drop monitor (diff) | |
| download | kernel-f7cf644796fcdb6a0e30e4a7f218be74ac8cb31d.tar.gz kernel-f7cf644796fcdb6a0e30e4a7f218be74ac8cb31d.zip | |
tools: ynl-gen: fix single attribute structs with attr 0 only
Chuck run into an issue with a single-element attr-set which
only has an attr with value of 0. The search for max attr in
a struct records attrs with value larger than 0 only (max_val
is set to 0 at the start). Adjust the comparison, alternatively
max_val could be init'ed to -1. Somehow picking the last attr
of a value seems like a good idea in general.
Reported-by: Chuck Lever III <[email protected]>
Fixes: be5bea1cc0bf ("net: add basic C code generators for Netlink")
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions
