summaryrefslogtreecommitdiff
path: root/tools/docs/lib/parse_data_structs.py
diff options
context:
space:
mode:
authorLizhi Hou <lizhi.hou@amd.com>2025-10-24 09:55:03 -0700
committerLizhi Hou <lizhi.hou@amd.com>2025-10-24 13:06:06 -0700
commit81233d5419cf20e4f5ef505882951616888a2ef9 (patch)
tree396a67094d7f5cd6fa118f2f8e45376bf6f3745b /tools/docs/lib/parse_data_structs.py
parent41ee90230c571161a948f175134ca0e083de3ca2 (diff)
accel/amdxdna: Fix uninitialized return value
In aie2_get_hwctx_status() and aie2_query_ctx_status_array(), the functions could return an uninitialized value in some cases. Update them to always return 0. The amount of valid results is indicated by the returned buffer_size, element_size, and num_element fields. Fixes: 2f509fe6a42c ("accel/amdxdna: Add ioctl DRM_IOCTL_AMDXDNA_GET_ARRAY") Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org> Signed-off-by: Lizhi Hou <lizhi.hou@amd.com> Link: https://patch.msgid.link/20251024165503.1548131-1-lizhi.hou@amd.com
Diffstat (limited to 'tools/docs/lib/parse_data_structs.py')
0 files changed, 0 insertions, 0 deletions