提交 6e8c06d2 编写于 作者: G Gustavo A. R. Silva 提交者: Chris Wilson

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: fe215c8b ("drm/i915/selftests: add missing gtt shrinker test")
Signed-off-by: NGustavo A. R. Silva <gustavo@embeddedor.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180214211234.GA22341@embeddedgusReviewed-by: NJani Nikula <jani.nikula@intel.com>
Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
上级 c5cb21c1
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册