diff options
author | alc <alc@FreeBSD.org> | 2003-06-24 19:48:34 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2003-06-24 19:48:34 +0000 |
commit | cbc68243abb316e5361c77fb8a7ba09169db5b2c (patch) | |
tree | 96ab4064ef463f2e5892effa09b8670e7c20d1fa /sys | |
parent | 270ae60a457a00d2a628cb232b6f5da718c99a11 (diff) | |
download | FreeBSD-src-cbc68243abb316e5361c77fb8a7ba09169db5b2c.zip FreeBSD-src-cbc68243abb316e5361c77fb8a7ba09169db5b2c.tar.gz |
Assert that the vm object is locked on entry to dev_pager_getpages().
Diffstat (limited to 'sys')
-rw-r--r-- | sys/vm/device_pager.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/vm/device_pager.c b/sys/vm/device_pager.c index d96cd85..65b268a 100644 --- a/sys/vm/device_pager.c +++ b/sys/vm/device_pager.c @@ -212,6 +212,7 @@ dev_pager_getpages(object, m, count, reqpage) d_mmap_t *mapfunc; int prot; + VM_OBJECT_LOCK_ASSERT(object, MA_OWNED); dev = object->handle; offset = m[reqpage]->pindex; VM_OBJECT_UNLOCK(object); |