drm/i915: Fix return value check in kfence selftests
Subsystems (2)
PATCH 1/1 drm/i915: Fix return value check in kfence selftests
From: Wei Yongjun <[email protected]>
Fix the return value check which testing the wrong variable.
Signed-off-by Wei Yongjun <[email protected]>
--- drivers/gpu/drm/i915/selftests/i915_sw_fence.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/selftests/i915_sw_fence.c +2 -2
@@ -311,7 +311,7 @@ static int test_AB_C(void *arg) }C =alloc_fence (); -if (!B ) { +if (!C ) { ret = -ENOMEM ; goto err_B; }
@@ -388,7 +388,7 @@ static int test_C_AB(void *arg) }C =alloc_fence (); -if (!B ) { +if (!C ) { ret = -ENOMEM ; goto err_B; }
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 3 lines · Wei Yongjun
From: Wei Yongjun <[email protected]>
Fix the return value check which testing the wrong variable.
Already fixed up yesterday:
commit ac0a73fb526100adc521ec2069623e47ca3997a8
Author: Colin Ian King <[email protected]> Date: Thu May 18 14:39:42 2017 +0100
drm/i915: Check C for null pointer rather than B
Thanks for the patch.
-Chris
Signature · 5 lines
Chris Wilson, Intel Open Source Technology Centre _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx