diff options
author | David Hill <dhill@cvs.openbsd.org> | 2008-11-24 21:20:46 +0000 |
---|---|---|
committer | David Hill <dhill@cvs.openbsd.org> | 2008-11-24 21:20:46 +0000 |
commit | b297107577750489cac4e25344945858dffdd910 (patch) | |
tree | 69ed99f9ecee247fb292ed2cc9f1070b8b187677 /sys/dev/pci | |
parent | ca5bf6ef5cac7fa67aa3a2131fd4de3deb12adf3 (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.c | 2 |
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); |