From: Chris Wilson Date: Sun, 9 Feb 2020 13:19:18 +0000 (+0000) Subject: drm/i915/selftests: Remove erroneous intel_engine_pm_put X-Git-Tag: baikal/mips/sdk5.9~13997^2~18^2~116 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=ccbb6ed9db84427fcaeb2c30f0d7c68e4191598a;p=kernel.git drm/i915/selftests: Remove erroneous intel_engine_pm_put On an allocation error path for live_hwsp_alternate, we dropped the engine wakeref before we had even acquired it. Signed-off-by: Chris Wilson Reviewed-by: Mika Kuoppala Link: https://patchwork.freedesktop.org/patch/msgid/20200209131922.180287-4-chris@chris-wilson.co.uk --- diff --git a/drivers/gpu/drm/i915/gt/selftest_timeline.c b/drivers/gpu/drm/i915/gt/selftest_timeline.c index e59bf7e31d83b..c2578a0f2f143 100644 --- a/drivers/gpu/drm/i915/gt/selftest_timeline.c +++ b/drivers/gpu/drm/i915/gt/selftest_timeline.c @@ -606,7 +606,6 @@ static int live_hwsp_alternate(void *arg) tl = checked_intel_timeline_create(gt); if (IS_ERR(tl)) { - intel_engine_pm_put(engine); err = PTR_ERR(tl); goto out; }