summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorDavid Hill <dhill@cvs.openbsd.org>2008-11-24 21:20:46 +0000
committerDavid Hill <dhill@cvs.openbsd.org>2008-11-24 21:20:46 +0000
commitb297107577750489cac4e25344945858dffdd910 (patch)
tree69ed99f9ecee247fb292ed2cc9f1070b8b187677 /sys/dev/pci
parentca5bf6ef5cac7fa67aa3a2131fd4de3deb12adf3 (diff)
Make sure we do not DRM_UNLOCK() twice.
ok oga@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/drm/drm_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/drm_drv.c b/sys/dev/pci/drm/drm_drv.c
index b28780a0da7..86120e38f80 100644
--- a/sys/dev/pci/drm/drm_drv.c
+++ b/sys/dev/pci/drm/drm_drv.c
@@ -455,12 +455,12 @@ drmclose(dev_t kdev, int flags, int fmt, struct proc *p)
DRM_LOCK();
file_priv = drm_find_file_by_minor(dev, minor(kdev));
- DRM_UNLOCK();
if (file_priv == NULL) {
DRM_ERROR("can't find authenticator\n");
retcode = EINVAL;
goto done;
}
+ DRM_UNLOCK();
if (dev->driver->close != NULL)
dev->driver->close(dev, file_priv);