From: Gustavo A. R. Silva Date: Wed, 14 Feb 2018 21:12:34 +0000 (-0600) Subject: drm/i915/selftests: fix inconsistent IS_ERR and PTR_ERR X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=6e8c06d291f339d6586777e4c6184fb1102c2d97;p=openwrt%2Fstaging%2Fblogic.git drm/i915/selftests: fix inconsistent IS_ERR and PTR_ERR Fix inconsistent IS_ERR and PTR_ERR in shrink_boom. The proper pointer to use is _explode_ instead of _purge_. This issue was detected with the help of Coccinelle. Fixes: fe215c8bc426 ("drm/i915/selftests: add missing gtt shrinker test") Signed-off-by: Gustavo A. R. Silva Link: https://patchwork.freedesktop.org/patch/msgid/20180214211234.GA22341@embeddedgus Reviewed-by: Jani Nikula Signed-off-by: Chris Wilson --- diff --git a/drivers/gpu/drm/i915/selftests/i915_gem_gtt.c b/drivers/gpu/drm/i915/selftests/i915_gem_gtt.c index d8064276431c..89b6ca9b14a7 100644 --- a/drivers/gpu/drm/i915/selftests/i915_gem_gtt.c +++ b/drivers/gpu/drm/i915/selftests/i915_gem_gtt.c @@ -927,7 +927,7 @@ static int shrink_boom(struct drm_i915_private *i915, explode = fake_dma_object(i915, size); if (IS_ERR(explode)) { - err = PTR_ERR(purge); + err = PTR_ERR(explode); goto err_purge; }