diff options
author | Matthew Auld <[email protected]> | 2024-08-21 18:19:18 +0100 |
---|---|---|
committer | Matthew Brost <[email protected]> | 2024-08-21 19:38:24 -0700 |
commit | 321d6b4b9cbe3dd0bc99937d5e5b4d730b5b5798 (patch) | |
tree | cf87d5ea26fae54917d2301f95fa9e20f2d76c62 /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | 40520283e0fd11237ed9dfc0991503b3403d5fa4 (diff) |
drm/xe: fixup xe_alloc_pf_queue
kzalloc expects number of bytes, therefore we should convert the number
of dw into bytes, otherwise we are likely just accessing beyond the
array causing all kinds of carnage. Also fixup the error handling while
we are here.
v2:
- Prefer kcalloc (dim)
Fixes: 3338e4f90c14 ("drm/xe: Use topology to determine page fault queue size")
Signed-off-by: Matthew Auld <[email protected]>
Cc: Stuart Summers <[email protected]>
Cc: Matthew Brost <[email protected]>
Reviewed-by: Nirmoy Das <[email protected]>
Signed-off-by: Matthew Brost <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions