]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit - drivers/gpu/drm/i915/intel_lrc.c
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)
commit3126a660f352b3fe48125a8a0b4fdbf85935d8bf
treefed64e6f48b0b27f913c953383ece357711dc79a
parentd4dc5e92c00d41044a86bd98243b322000514d41
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: 149c86e74fe4 ('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