projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc7ad27
)
[BSD] Move unlock in drm_vm.c from accidental platform #ifdeffing.
author
Owain Ainsworth
<oga@stephanie.cybernetseraph.org>
Tue, 27 May 2008 22:12:35 +0000
(15:12 -0700)
committer
Eric Anholt
<eric@anholt.net>
Tue, 27 May 2008 22:12:35 +0000
(15:12 -0700)
Also remove an unreachable unlock.
bsd-core/drm_vm.c
patch
|
blob
|
history
diff --git
a/bsd-core/drm_vm.c
b/bsd-core/drm_vm.c
index f2a1a1f9c1160b3619f6b6d4936ca62e8ba13c39..9950c37ecc0ba92f87ea914397d50382e20d7c8a 100644
(file)
--- 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