Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1644964
| From | Wei Yongjun <weiyj.lk@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH -next] drm/i915: Fix return value check in kfence selftests |
| Date | 2017-05-19 02:30 +0200 |
| Message-ID | <tIDXP-2u0-1@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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;
}
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[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
csiph-web