[Intel-gfx] [PATCH v2] drm/i915: fix wrong error number report
Chris Wilson
chris at chris-wilson.co.uk
Tue Oct 2 11:18:49 UTC 2018
Quoting Andi Shyti (2018-10-02 10:20:47)
> During driver load it's considered that the i915_driver_create()
> function fails only in case of insufficient memory. Indeed, in
> case of failure of i915_driver_create(), the load function
> returns indiscriminately -ENOMEM ignoring the real cause of
> failure.
Though if it is not ENOMEM, some stern words will be addressed to
whomever at fault.
> In i915_driver_create() get the consistent error value from
> drm_dev_init() and embed it in the pointer return value.
>
> Signed-off-by: Andi Shyti <andi.shyti at intel.com>
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
-Chris
More information about the Intel-gfx
mailing list