summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@tungstengraphics.com>2007-07-19 16:58:23 +0200
committerJakob Bornecrantz <wallbraker@aurora.(none)>2007-07-19 16:58:23 +0200
commit43c9abdedc88807a40034513de842d6eeb8c3ed2 (patch)
tree7628906828510590b936ad3f4e1dd3d0c93426e8 /linux-core
parent70fd9351ed6c666def710fd61b542a7c975d9ac9 (diff)
Fix unlocking of spinlock when we should not
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/drm_crtc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/linux-core/drm_crtc.c b/linux-core/drm_crtc.c
index 65ccc870..0ede1571 100644
--- a/linux-core/drm_crtc.c
+++ b/linux-core/drm_crtc.c
@@ -59,10 +59,8 @@ again:
}
ret = idr_get_new_above(&dev->mode_config.crtc_idr, ptr, 1, &new_id);
- if (ret == -EAGAIN) {
- spin_unlock(&dev->mode_config.config_lock);
- goto again;
- }
+ if (ret == -EAGAIN)
+ goto again;
return new_id;
}