Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 217881
b: refs/heads/master
c: 45ff46c
h: refs/heads/master
i:
  217879: b160be0
v: v3
  • Loading branch information
Daniel Vetter authored and Dave Airlie committed Sep 26, 2010
1 parent 73cc16d commit 0b306f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4a445f291ac3faa08f56eaeb6e44856b6b72b74c
refs/heads/master: 45ff46c54a31bf8924b61e3e3411654410a3b5c3
5 changes: 5 additions & 0 deletions trunk/drivers/gpu/drm/drm_lock.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ int drm_lock(struct drm_device *dev, void *data, struct drm_file *file_priv)
int drm_unlock(struct drm_device *dev, void *data, struct drm_file *file_priv)
{
struct drm_lock *lock = data;
struct drm_master *master = file_priv->master;

if (lock->context == DRM_KERNEL_CONTEXT) {
DRM_ERROR("Process %d using kernel context %d\n",
Expand All @@ -161,6 +162,10 @@ int drm_unlock(struct drm_device *dev, void *data, struct drm_file *file_priv)

atomic_inc(&dev->counts[_DRM_STAT_UNLOCKS]);

if (drm_lock_free(&master->lock, lock->context)) {
/* FIXME: Should really bail out here. */
}

unblock_all_signals();
return 0;
}
Expand Down

0 comments on commit 0b306f6

Please sign in to comment.