summaryrefslogtreecommitdiff
path: root/bsd-core/drm_vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'bsd-core/drm_vm.c')
-rw-r--r--bsd-core/drm_vm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bsd-core/drm_vm.c b/bsd-core/drm_vm.c
index da815329..9e9f1e14 100644
--- a/bsd-core/drm_vm.c
+++ b/bsd-core/drm_vm.c
@@ -65,7 +65,9 @@ paddr_t DRM(mmap)(dev_t kdev, off_t offset, int prot)
drm_map_list_entry_t *listentry = NULL;
drm_file_t *priv;
+ DRM_LOCK();
priv = DRM(find_file_by_proc)(dev, DRM_CURPROC);
+ DRM_UNLOCK();
if (!priv) {
DRM_DEBUG("can't find authenticator\n");
return EINVAL;