[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20200713080749.21782-1-vulab@iscas.ac.cn>
Date: Mon, 13 Jul 2020 08:07:49 +0000
From: Xu Wang <vulab@...as.ac.cn>
To: jani.nikula@...ux.intel.com, joonas.lahtinen@...ux.intel.com,
rodrigo.vivi@...el.com, airlied@...ux.ie, daniel@...ll.ch,
chris@...is-wilson.co.uk, mika.kuoppala@...ux.intel.com,
tvrtko.ursulin@...el.com, andi.shyti@...el.com,
matthew.auld@...el.com, intel-gfx@...ts.freedesktop.org,
dri-devel@...ts.freedesktop.org
Cc: linux-kernel@...r.kernel.org, Xu Wang <vulab@...as.ac.cn>
Subject: [PATCH] f2fs: gc: fix the variable used in PTR_ERR()
PTR_ERR should access the value just tested by IS_ERR, so fix
the variable used in PTR_ERR().
Signed-off-by: Xu Wang <vulab@...as.ac.cn>
---
drivers/gpu/drm/i915/gt/selftest_lrc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/gt/selftest_lrc.c b/drivers/gpu/drm/i915/gt/selftest_lrc.c
index 924bc01ef526..d2587e46afe9 100644
--- a/drivers/gpu/drm/i915/gt/selftest_lrc.c
+++ b/drivers/gpu/drm/i915/gt/selftest_lrc.c
@@ -1349,7 +1349,7 @@ static int live_timeslice_nopreempt(void *arg)
ce = intel_context_create(engine);
if (IS_ERR(ce)) {
- err = PTR_ERR(rq);
+ err = PTR_ERR(ce);
goto out_spin;
}
--
2.17.1
Powered by blists - more mailing lists