diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2024-10-09 19:05:10 +0300 |
---|---|---|
committer | Thomas Hellström <thomas.hellstrom@linux.intel.com> | 2024-10-10 15:53:28 +0300 |
commit | 46bcb0a1214ac6677df8660ac0f6bdf1eff27e8f (patch) | |
tree | c5579b2abb7ec3deb9a6a3c3123004490c068b3a /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | a187c1b0a800565a4db6372268692aff99df7f53 (diff) | |
download | linux-46bcb0a1214ac6677df8660ac0f6bdf1eff27e8f.tar.xz |
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 <colin.i.king@gmail.com>
Reviewed-by: John Harrison <John.C.Harrison@Intel.com>
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241009160510.372195-1-colin.i.king@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions