summaryrefslogtreecommitdiff
path: root/bsd-core
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@stephanie.cybernetseraph.org>2008-05-27 15:12:35 -0700
committerEric Anholt <eric@anholt.net>2008-05-27 15:12:35 -0700
commitdf127c303d944720937fa6b54a8a9f84bc2fe518 (patch)
treecf36728e8f9686c8a6e3bbcace247fbb286512b1 /bsd-core
parentcc7ad27fe414cdf87b7561778a766a012541f116 (diff)
[BSD] Move unlock in drm_vm.c from accidental platform #ifdeffing.
Also remove an unreachable unlock.
Diffstat (limited to 'bsd-core')
-rw-r--r--bsd-core/drm_vm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/bsd-core/drm_vm.c b/bsd-core/drm_vm.c
index f2a1a1f9..9950c37e 100644
--- a/bsd-core/drm_vm.c
+++ b/bsd-core/drm_vm.c
@@ -67,9 +67,9 @@ paddr_t drm_mmap(dev_t kdev, off_t offset, int prot)
unsigned long page = offset >> PAGE_SHIFT;
unsigned long phys = dma->pagelist[page];
+ DRM_SPINUNLOCK(&dev->dma_lock);
#if defined(__FreeBSD__) && __FreeBSD_version >= 500102
*paddr = phys;
- DRM_SPINUNLOCK(&dev->dma_lock);
return 0;
#else
return atop(phys);
@@ -78,7 +78,6 @@ paddr_t drm_mmap(dev_t kdev, off_t offset, int prot)
DRM_SPINUNLOCK(&dev->dma_lock);
return -1;
}
- DRM_SPINUNLOCK(&dev->dma_lock);
}
/* A sequential search of a linked list is