diff options
| author | Hangbin Liu <liuhangbin@gmail.com> | 2025-10-24 12:58:53 +0000 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-10-27 18:16:49 -0700 |
| commit | e3966940559d52aa1800a008dcfeec218dd31f88 (patch) | |
| tree | 77032390048745fc036babdeb779dcc27a7eefd7 /tools/docs/parse-headers.py | |
| parent | 855e43164e95bf6559ab2b53b28e0f95887ff099 (diff) | |
tools: ynl: avoid print_field when there is no reply
When request a none support device operation, there will be no reply.
In this case, the len(desc) check will always be true, causing print_field
to enter an infinite loop and crash the program. Example reproducer:
# ethtool.py -c veth0
To fix this, return immediately if there is no reply.
Fixes: f3d07b02b2b8 ("tools: ynl: ethtool testing tool")
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Link: https://patch.msgid.link/20251024125853.102916-1-liuhangbin@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/docs/parse-headers.py')
0 files changed, 0 insertions, 0 deletions
