mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-31 16:57:10 +00:00
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
This commit is contained in:
parent
3a46066496
commit
8f4e17d4b2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7239
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user