From 40259ce7b8bda9622a7c61b0ade8426033d2824f Mon Sep 17 00:00:00 2001 From: David Hill Date: Thu, 6 Nov 2008 16:06:26 +0000 Subject: Make sure we do not unlock twice. nice catch, oga@ --- sys/dev/pci/drm/drm_irq.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sys/dev') 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); -- cgit v1.2.3