[patch] drm/i915: checking IS_ERR() instead of NULL

2015-05-05 Thread Daniel Vetter
On Thu, Apr 30, 2015 at 05:47:13PM +0300, Dan Carpenter wrote: > On Thu, Apr 30, 2015 at 03:43:02PM +0100, Chris Wilson wrote: > > On Thu, Apr 30, 2015 at 05:30:50PM +0300, Dan Carpenter wrote: > > > We switched from calling i915_gem_alloc_context_obj() to calling > > > i915_gem_alloc_object() so t

[patch] drm/i915: checking IS_ERR() instead of NULL

2015-04-30 Thread Dan Carpenter
On Thu, Apr 30, 2015 at 03:43:02PM +0100, Chris Wilson wrote: > On Thu, Apr 30, 2015 at 05:30:50PM +0300, Dan Carpenter wrote: > > 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

[patch] drm/i915: checking IS_ERR() instead of NULL

2015-04-30 Thread Dan Carpenter
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 diff --git a/drivers/gpu/d

[patch] drm/i915: checking IS_ERR() instead of NULL

2015-04-30 Thread Chris Wilson
On Thu, Apr 30, 2015 at 05:30:50PM +0300, Dan Carpenter wrote: > 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(). I had a patch to change i915_gem_alloc_object() to report t