summaryrefslogtreecommitdiff
path: root/bsd-core/drm_bufs.c
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2003-11-12 20:30:51 +0000
committerEric Anholt <anholt@freebsd.org>2003-11-12 20:30:51 +0000
commit6e56c39371a551af1e05e53231162e0fc42c6ce0 (patch)
tree208ddc8abb26093a9da37732eaf903649e4971b0 /bsd-core/drm_bufs.c
parent1f7598245af7e73b34130a44fbaac230e29d7aad (diff)
Fix a locking nit, and add asserts in some things that should be called
with locks held.
Diffstat (limited to 'bsd-core/drm_bufs.c')
-rw-r--r--bsd-core/drm_bufs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsd-core/drm_bufs.c b/bsd-core/drm_bufs.c
index 0915da84..15d4a3b1 100644
--- a/bsd-core/drm_bufs.c
+++ b/bsd-core/drm_bufs.c
@@ -145,8 +145,8 @@ int DRM(addmap)( DRM_IOCTL_ARGS )
DRM(free)(map, sizeof(*map), DRM_MEM_MAPS);
return DRM_ERR(EBUSY);
}
- DRM_UNLOCK();
dev->lock.hw_lock = map->handle; /* Pointer to lock */
+ DRM_UNLOCK();
}
break;
#if __REALLY_HAVE_AGP