Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318608
b: refs/heads/master
c: 73c273e
h: refs/heads/master
v: v3
  • Loading branch information
Daniel Vetter committed Jun 20, 2012
1 parent 9447ee0 commit 1d23b5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6f4c45c12c6775b8158fc143115037d084df12c3
refs/heads/master: 73c273eb7547d2557b49f9d1f42e298145c1e635
9 changes: 2 additions & 7 deletions trunk/drivers/gpu/drm/i915/i915_gem_context.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,14 +289,9 @@ void i915_gem_context_fini(struct drm_device *dev)

static int context_idr_cleanup(int id, void *p, void *data)
{
struct drm_file *file = (struct drm_file *)data;
struct drm_i915_file_private *file_priv = file->driver_priv;
struct i915_hw_context *ctx;
struct i915_hw_context *ctx = p;

BUG_ON(id == DEFAULT_CONTEXT_ID);
ctx = i915_gem_context_get(file_priv, id);
if (WARN_ON(ctx == NULL))
return -ENXIO;

do_destroy(ctx);

Expand All @@ -308,7 +303,7 @@ void i915_gem_context_close(struct drm_device *dev, struct drm_file *file)
struct drm_i915_file_private *file_priv = file->driver_priv;

mutex_lock(&dev->struct_mutex);
idr_for_each(&file_priv->context_idr, context_idr_cleanup, file);
idr_for_each(&file_priv->context_idr, context_idr_cleanup, NULL);
idr_destroy(&file_priv->context_idr);
mutex_unlock(&dev->struct_mutex);
}
Expand Down

0 comments on commit 1d23b5a

Please sign in to comment.