Skip to content
Commit 32c13bcd authored by Chris Wilson's avatar Chris Wilson
Browse files

drm/i915: Report the correct errno from i915_gem_context_open()



Fixup the errno as we adjusted the error path to receive the errno and
not compute it itself from ERR_PTR(ctx) anymore.

drivers/gpu/drm/i915/i915_gem_context.c:793 i915_gem_context_open() warn: passing a valid pointer to 'PTR_ERR'

Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Fixes: 3aa9945a

 ("drm/i915: Separate GEM context construction and registration to userspace")
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190325090413.19906-2-chris@chris-wilson.co.uk
parent 0df3f09d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment