Skip to content

Commit

Permalink
drm/i915/bdw: Return -ENONENT on default ctx destroy
Browse files Browse the repository at this point in the history
This was an accidental "ABI" change introduced during PPGTT:

commit 0eea67e
Author: Ben Widawsky <ben@bwidawsk.net>
Date:   Fri Dec 6 14:11:19 2013 -0800

    drm/i915: Create a per file_priv default context

The failure test application actually tests the return type. The other
option is to simply change the test.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
  • Loading branch information
Ben Widawsky authored and Daniel Vetter committed Jan 10, 2014
1 parent 0e46ce2 commit c2cf241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/i915_gem_context.c
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ int i915_gem_context_destroy_ioctl(struct drm_device *dev, void *data,
return -ENODEV;

if (args->ctx_id == DEFAULT_CONTEXT_ID)
return -EPERM;
return -ENOENT;

ret = i915_mutex_lock_interruptible(dev);
if (ret)
Expand Down

0 comments on commit c2cf241

Please sign in to comment.