diff options
author | dg <dg@FreeBSD.org> | 1995-03-22 05:08:41 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-03-22 05:08:41 +0000 |
commit | 0c24a80ae8345c864bf33d02285da373f8f95887 (patch) | |
tree | 12e57f3cf4be487568d6e7a7b02ceec8d474c105 /sys/vm | |
parent | a02915983341f89e0cd98f937ce7fb06eda48b40 (diff) | |
download | FreeBSD-src-0c24a80ae8345c864bf33d02285da373f8f95887.zip FreeBSD-src-0c24a80ae8345c864bf33d02285da373f8f95887.tar.gz |
Fixed bug in vm_mmap() where the object that is created in some cases
was the wrong size. This is the likely cause of panics reported by
Lars Fredriksen and Paul Richards related to a -1 blkno when paging
via the swap_pager.
Submitted by: John Dyson
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_mmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vm_mmap.c b/sys/vm/vm_mmap.c index 177e880..12860fd 100644 --- a/sys/vm/vm_mmap.c +++ b/sys/vm/vm_mmap.c @@ -38,7 +38,7 @@ * from: Utah $Hdr: vm_mmap.c 1.6 91/10/21$ * * @(#)vm_mmap.c 8.4 (Berkeley) 1/12/94 - * $Id: vm_mmap.c,v 1.16 1995/03/21 02:54:04 davidg Exp $ + * $Id: vm_mmap.c,v 1.17 1995/03/21 10:15:52 davidg Exp $ */ /* @@ -745,7 +745,7 @@ vm_mmap(map, addr, size, prot, maxprot, flags, handle, foff) * user_object. Since we don't map 'object', we want * only this one reference. */ - user_object = vm_object_allocate( size); + user_object = vm_object_allocate(object->size); user_object->shadow = object; TAILQ_INSERT_TAIL(&object->reverse_shadow_head, user_object, reverse_shadow_list); |