From 8752ca1e71a285e3ae1fd5366cf12f7bd9db3907 Mon Sep 17 00:00:00 2001 From: Owain Ainsworth Date: Thu, 19 Jun 2008 01:43:26 +0000 Subject: Don't play with the vblank refcount if we didn't increase it first. --- sys/dev/pci/drm/drm_irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/dev/pci/drm/drm_irq.c b/sys/dev/pci/drm/drm_irq.c index 99d2e2b7de8..1c3e60089f0 100644 --- a/sys/dev/pci/drm/drm_irq.c +++ b/sys/dev/pci/drm/drm_irq.c @@ -552,8 +552,8 @@ drm_wait_vblank(drm_device_t *dev, void *data, struct drm_file *file_priv) "drmvblq", 3 * DRM_HZ); DRM_SPINUNLOCK(&dev->vbl_lock); } + drm_vblank_put(dev, crtc); } - drm_vblank_put(dev, crtc); if (ret != EINTR) { struct timeval now; -- cgit v1.2.3