Re: [Intel-gfx] [PATCH] drm/i915: fix wrong error number report

2018-10-02 Thread Andi Shyti
> > struct intel_device_info *device_info; > > struct drm_i915_private *i915; > > + int err; > > > > i915 = kzalloc(sizeof(*i915), GFP_KERNEL); > > if (!i915) > > return NULL; > > Ahem. oh yes :) Thanks, Andi ___

Re: [Intel-gfx] [PATCH] drm/i915: fix wrong error number report

2018-10-01 Thread Chris Wilson
Quoting Andi Shyti (2018-10-01 17:54:18) > 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 > f