[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170519002605.29993-1-weiyj.lk@gmail.com>
Date: Fri, 19 May 2017 00:26:05 +0000
From: Wei Yongjun <weiyj.lk@...il.com>
To: Daniel Vetter <daniel.vetter@...el.com>,
Jani Nikula <jani.nikula@...ux.intel.com>,
David Airlie <airlied@...ux.ie>,
Mika Kuoppala <mika.kuoppala@...el.com>,
Chris Wilson <chris@...is-wilson.co.uk>
Cc: Wei Yongjun <weiyongjun1@...wei.com>,
intel-gfx@...ts.freedesktop.org, dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org
Subject: [PATCH -next] drm/i915: Fix return value check in kfence selftests
From: Wei Yongjun <weiyongjun1@...wei.com>
Fix the return value check which testing the wrong variable.
Signed-off-by: Wei Yongjun <weiyongjun1@...wei.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;
}
Powered by blists - more mailing lists