diff options
author | Matthew Dempsky <matthew@cvs.openbsd.org> | 2010-09-21 04:51:11 +0000 |
---|---|---|
committer | Matthew Dempsky <matthew@cvs.openbsd.org> | 2010-09-21 04:51:11 +0000 |
commit | 57c6a6130c22095617cd39253673496c2a4ee3d7 (patch) | |
tree | dae368174803dec18ff4659dd17e1be8823c08bd | |
parent | 0b7a12d1509ce9298e24f128665fc89ae4bac37d (diff) |
Avoid double unlocking the DRM lock in drmclose(). Caught by the
strict locking diff.
ok oga@
-rw-r--r-- | sys/dev/pci/drm/drm_drv.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pci/drm/drm_drv.c b/sys/dev/pci/drm/drm_drv.c index ee32760a00e..eb706e7301f 100644 --- a/sys/dev/pci/drm/drm_drv.c +++ b/sys/dev/pci/drm/drm_drv.c @@ -538,10 +538,9 @@ done: if (--dev->open_count == 0) { DRM_UNLOCK(); retcode = drm_lastclose(dev); - } + } else + DRM_UNLOCK(); - DRM_UNLOCK(); - return (retcode); } |