* [PATCH] f2fs: gc: fix the variable used in PTR_ERR()
@ 2020-07-13 8:07 Xu Wang
0 siblings, 0 replies; only message in thread
From: Xu Wang @ 2020-07-13 8:07 UTC (permalink / raw)
To: jani.nikula, joonas.lahtinen, rodrigo.vivi, airlied, daniel,
chris, mika.kuoppala, tvrtko.ursulin, andi.shyti, matthew.auld,
intel-gfx, dri-devel
Cc: linux-kernel, Xu Wang
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@iscas.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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-07-13 8:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-13 8:07 [PATCH] f2fs: gc: fix the variable used in PTR_ERR() Xu Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).