drm/i915: Stop storing ctx->user_handle
The user_handle need only be known by userspace for it to lookup the context via the idr; internally we have no use for it. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190321140711.11190-3-chris@chris-wilson.co.uk
This commit is contained in:
@@ -98,7 +98,7 @@ live_context(struct drm_i915_private *i915, struct drm_file *file)
|
||||
return ctx;
|
||||
|
||||
err = gem_context_register(ctx, file->driver_priv);
|
||||
if (err)
|
||||
if (err < 0)
|
||||
goto err_ctx;
|
||||
|
||||
return ctx;
|
||||
|
Reference in New Issue
Block a user