[prev in list] [next in list] [prev in thread] [next in thread]
List: kernel-janitors
Subject: Re: [patch] drm/i915: checking IS_ERR() instead of NULL
From: Dan Carpenter <dan.carpenter () oracle ! com>
Date: 2015-04-30 14:47:13
Message-ID: 20150430144713.GD16501 () mwanda
[Download RAW message or body]
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 IS_ERR().
>
> I had a patch to change i915_gem_alloc_object() to report the correct
> error rather than NULL - which can come in surprisingly handy at
> times...
That also works, of course. Send it. :)
regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic