]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Report the correct errno from i915_gem_context_open()
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 25 Mar 2019 09:03:52 +0000 (09:03 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 25 Mar 2019 09:27:48 +0000 (09:27 +0000)
commit67889dbd9a9e44f166c3a55be55879910e5dedcb
treeda24cd9038d70489ea4c38058f837658664e369d
parent934dc42999cabce8e78cdc7ea95b6b16882be9a8
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: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: ee45cd25f255 ("drm/i915: Separate GEM context construction and registration to userspace")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190325090413.19906-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_context.c