summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2003-10-24 21:45:21 +0000
committerEric Anholt <anholt@FreeBSD.org>2003-10-24 21:45:21 +0000
commit4294fd5ce1d3a5d24a3cbd9979c5532c708e0f23 (patch)
tree7d925a9446440742a4ff452cd6daf1dd3da16864
parent84b4ac514ee998e8cdb4ba364b756249779c7110 (diff)
Notes
-rw-r--r--sys/dev/drm/drm_sysctl.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/drm/drm_sysctl.h b/sys/dev/drm/drm_sysctl.h
index 00bf90ebd5fe..ee25d90f08e7 100644
--- a/sys/dev/drm/drm_sysctl.h
+++ b/sys/dev/drm/drm_sysctl.h
@@ -226,12 +226,11 @@ static int DRM(bufs_info) DRM_SYSCTL_HANDLER_ARGS
* copy of the whole structure and the relevant data from buflist.
*/
DRM_LOCK();
- DRM_SPINLOCK(&dev->dma_lock);
if (dma == NULL) {
- DRM_SPINUNLOCK(&dev->dma_lock);
DRM_UNLOCK();
return 0;
}
+ DRM_SPINLOCK(&dev->dma_lock);
tempdma = *dma;
templists = DRM(alloc)(sizeof(int) * dma->buf_count, DRM_MEM_BUFS);
for (i = 0; i < dma->buf_count; i++)