From 9526e87d38841f187fd79921abc2c762e3002190 Mon Sep 17 00:00:00 2001 From: mrg Date: Sat, 7 Mar 2009 05:46:09 +0000 Subject: [PATCH] move a DRM_SPINUNLOCK() to where it will actually be executed. --- sys/dev/drm/drm_vm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/drm/drm_vm.c b/sys/dev/drm/drm_vm.c index 65ddcece41f4..0d2c7dbae5d2 100644 --- a/sys/dev/drm/drm_vm.c +++ b/sys/dev/drm/drm_vm.c @@ -1,4 +1,4 @@ -/* $NetBSD: drm_vm.c,v 1.15 2008/06/29 12:49:08 jmcneill Exp $ */ +/* $NetBSD: drm_vm.c,v 1.16 2009/03/07 05:46:09 mrg Exp $ */ /*- * Copyright 2003 Eric Anholt @@ -24,7 +24,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: drm_vm.c,v 1.15 2008/06/29 12:49:08 jmcneill Exp $"); +__KERNEL_RCSID(0, "$NetBSD: drm_vm.c,v 1.16 2009/03/07 05:46:09 mrg Exp $"); /* __FBSDID("$FreeBSD: src/sys/dev/drm/drm_vm.c,v 1.2 2005/11/28 23:13:53 anholt Exp $"); */ @@ -63,6 +63,7 @@ paddr_t drm_mmap(dev_t kdev, off_t offset, int prot) unsigned long page = offset >> PAGE_SHIFT; unsigned long pphys = dma->pagelist[page]; + DRM_SPINUNLOCK(&dev->dma_lock); #ifdef macppc return pphys; #else @@ -72,7 +73,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