aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2024-10-09 17:05:10 +0100
committerThomas Hellström <[email protected]>2024-10-10 14:53:28 +0200
commit46bcb0a1214ac6677df8660ac0f6bdf1eff27e8f (patch)
treec5579b2abb7ec3deb9a6a3c3123004490c068b3a /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parenta187c1b0a800565a4db6372268692aff99df7f53 (diff)
drm/xe/guc: Fix inverted logic on snapshot->copy check
Currently the check to see if snapshot->copy has been allocated is inverted and ends up dereferencing snapshot->copy when free'ing objects in the array when it is null or not free'ing the objects when snapshot->copy is allocated. Fix this by using the correct non-null pointer check logic. Fixes: d8ce1a977226 ("drm/xe/guc: Use a two stage dump for GuC logs and add more info") Signed-off-by: Colin Ian King <[email protected]> Reviewed-by: John Harrison <[email protected]> Signed-off-by: Thomas Hellström <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions