aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2023-09-13 11:17:41 +0300
committerRodrigo Vivi <[email protected]>2023-09-20 10:55:30 -0400
commitf17cc0f11fa18c06b4938c20f0244620199af0b0 (patch)
treed4a647c9ff6702b686e9aa556df10b0c1b64ff09 /scripts/gdb
parentce9ecca0238b140b88f43859b211c9fdfd8e5b70 (diff)
drm/i915/gt: Prevent error pointer dereference
Move the check for "if (IS_ERR(obj))" in front of the call to i915_gem_object_set_cache_coherency() which dereferences "obj". Otherwise it will lead to a crash. Fixes: 43aa755eae2c ("drm/i915/mtl: Update cache coherency setting for context structure") Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Andi Shyti <[email protected]> Signed-off-by: Andi Shyti <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit c92ec50822fb84306d951520d81919328421acbd) Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'scripts/gdb')
0 files changed, 0 insertions, 0 deletions