diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-06-19 01:43:26 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-06-19 01:43:26 +0000 |
commit | 8752ca1e71a285e3ae1fd5366cf12f7bd9db3907 (patch) | |
tree | 493c22bc05ad0b678ea8f66713daf2fac862fc1f /sys | |
parent | 6f777bb938d6c2a94bd79b300674b0a40509aead (diff) |
Don't play with the vblank refcount if we didn't increase it first.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/drm/drm_irq.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |