[PATCH v2] drm/i915: set "ret" correctly on error paths

Chris Wilson chris at chris-wilson.co.uk
Sat Apr 15 09:32:09 UTC 2017


On Fri, Apr 14, 2017 at 10:54:25PM +0300, Dan Carpenter wrote:
> If "crtc" is NULL, then my static checker complains that "ret" isn't
> initialized on that path.  It doesn't really cause a problem unless
> "ret" is somehow set to -EDEADLK which is not likely.
> 
> Chris Wilson also noticed another error path where "ret" isn't set
> correctly.
> 
> Signed-off-by: Dan Carpenter <dan.carpenter at oracle.com>
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>

Pushed, thanks very much for the patch.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the dri-devel mailing list