Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1644964 > unrolled thread
| Started by | Wei Yongjun <weiyj.lk@gmail.com> |
|---|---|
| First post | 2017-05-19 02:30 +0200 |
| Last post | 2017-05-19 09:50 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH -next] drm/i915: Fix return value check in kfence selftests Wei Yongjun <weiyj.lk@gmail.com> - 2017-05-19 02:30 +0200
Re: [PATCH -next] drm/i915: Fix return value check in kfence selftests Chris Wilson <chris@chris-wilson.co.uk> - 2017-05-19 09:50 +0200
| From | Wei Yongjun <weiyj.lk@gmail.com> |
|---|---|
| Date | 2017-05-19 02:30 +0200 |
| Subject | [PATCH -next] drm/i915: Fix return value check in kfence selftests |
| Message-ID | <tIDXP-2u0-1@gated-at.bofh.it> |
From: Wei Yongjun <weiyongjun1@huawei.com>
Fix the return value check which testing the wrong variable.
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
drivers/gpu/drm/i915/selftests/i915_sw_fence.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/selftests/i915_sw_fence.c b/drivers/gpu/drm/i915/selftests/i915_sw_fence.c
index 98baf10..c31d439 100644
--- a/drivers/gpu/drm/i915/selftests/i915_sw_fence.c
+++ b/drivers/gpu/drm/i915/selftests/i915_sw_fence.c
@@ -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;
}
[toc] | [next] | [standalone]
| From | Chris Wilson <chris@chris-wilson.co.uk> |
|---|---|
| Date | 2017-05-19 09:50 +0200 |
| Subject | Re: [PATCH -next] drm/i915: Fix return value check in kfence selftests |
| Message-ID | <tIKPF-7om-25@gated-at.bofh.it> |
| In reply to | #1644964 |
On Fri, May 19, 2017 at 12:26:05AM +0000, Wei Yongjun wrote:
> From: Wei Yongjun <weiyongjun1@huawei.com>
>
> Fix the return value check which testing the wrong variable.
Already fixed up yesterday:
commit ac0a73fb526100adc521ec2069623e47ca3997a8
Author: Colin Ian King <colin.king@canonical.com>
Date: Thu May 18 14:39:42 2017 +0100
drm/i915: Check C for null pointer rather than B
Thanks for the patch.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web