Re: [PATCH] drm/i915/selftests: Fix NULL vs IS_ERR checking for kernel_context

2022-01-12 Thread Matthew Brost
On Wed, Dec 22, 2021 at 07:58:29AM +, Miaoqian Lin wrote: > Since i915_gem_create_context() function return error pointers, > the kernel_context() function does not return null, It returns error > pointers too. Using IS_ERR() to check the return value to fix this. > Just a nit, err is

[PATCH] drm/i915/selftests: Fix NULL vs IS_ERR checking for kernel_context

2021-12-21 Thread Miaoqian Lin
Since i915_gem_create_context() function return error pointers, the kernel_context() function does not return null, It returns error pointers too. Using IS_ERR() to check the return value to fix this. Signed-off-by: Miaoqian Lin --- drivers/gpu/drm/i915/gt/selftest_execlists.c | 41