summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Hill <dhill@cvs.openbsd.org>2008-11-06 16:06:26 +0000
committerDavid Hill <dhill@cvs.openbsd.org>2008-11-06 16:06:26 +0000
commit40259ce7b8bda9622a7c61b0ade8426033d2824f (patch)
tree3fd9739d37ba383b6a073448b6d02ed7d3b4fc17 /sys
parentabf5f1d4b7d40778eb2602b330302040dc5779c0 (diff)
Make sure we do not unlock twice.
nice catch, oga@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/drm/drm_irq.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/pci/drm/drm_irq.c b/sys/dev/pci/drm/drm_irq.c
index c2afd1a3972..84ac280662d 100644
--- a/sys/dev/pci/drm/drm_irq.c
+++ b/sys/dev/pci/drm/drm_irq.c
@@ -373,10 +373,8 @@ drm_wait_vblank(struct drm_device *dev, void *data, struct drm_file *file_priv)
DRM_SPINLOCK(&dev->vbl_lock);
while (ret == 0) {
if ((drm_vblank_count(dev, crtc)
- - vblwait->request.sequence) <= (1 << 23)) {
- DRM_SPINUNLOCK(&dev->vbl_lock);
+ - vblwait->request.sequence) <= (1 << 23))
break;
- }
ret = msleep(&dev->vblank[crtc],
&dev->vbl_lock, PZERO | PCATCH,
"drmvblq", 3 * DRM_HZ);