]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: checking IS_ERR() instead of NULL
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 30 Apr 2015 14:30:50 +0000 (17:30 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 8 May 2015 11:03:23 +0000 (13:03 +0200)
commit1e8473a2e701be9e51fde0e042aab0c6d734dab6
treefed64e6f48b0b27f913c953383ece357711dc79a
parent42017fbaa2984ab2ee02beb4775d077e482175b9
drm/i915: checking IS_ERR() instead of NULL

We switched from calling i915_gem_alloc_context_obj() to calling
i915_gem_alloc_object() so the error handling needs to be updated to
check for NULL instead of IS_ERR().

Fixes: 1ae94080ad89 ('drm/i915: Allocate context objects from stolen')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_lrc.c