Re: [PATCH] drm/i915: check fence to avoid null pointer dereference

2022-05-18 Thread Tvrtko Ursulin
Hi, On 17/05/2022 17:56, Yongzhi Liu wrote: if drm_syncobj_fence_get return null, we will get a null pointer. Fix this by adding the null pointer check on fence. Signed-off-by: Yongzhi Liu --- drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 4 1 file changed, 4 insertions(+) diff -

[PATCH] drm/i915: check fence to avoid null pointer dereference

2022-05-17 Thread Yongzhi Liu
if drm_syncobj_fence_get return null, we will get a null pointer. Fix this by adding the null pointer check on fence. Signed-off-by: Yongzhi Liu --- drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/i915/gem/i915_gem_execbuffer