diff options
author | dyson <dyson@FreeBSD.org> | 1996-09-08 23:49:47 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1996-09-08 23:49:47 +0000 |
commit | b69e6f092f4e366f267488452ce78501c9687ec2 (patch) | |
tree | 8e5ad7b4693e7aac162f0ba6fed23689631e1810 /sys/vm | |
parent | feea3ad7f005539dac0a7423085ea0fa56a5f518 (diff) | |
download | FreeBSD-src-b69e6f092f4e366f267488452ce78501c9687ec2.zip FreeBSD-src-b69e6f092f4e366f267488452ce78501c9687ec2.tar.gz |
Fixed the use of the wrong variable in vm_map_madvise.
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_map.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index 16ae854..154b64a 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -61,7 +61,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: vm_map.c,v 1.54 1996/07/30 03:08:09 dyson Exp $ + * $Id: vm_map.c,v 1.55 1996/09/08 16:57:53 dyson Exp $ */ /* @@ -1235,7 +1235,7 @@ vm_map_madvise(map, pmap, start, end, advise) { vm_pindex_t pindex; int count; - vm_size_t size = entry->end - entry->start; + vm_size_t size = current->end - current->start; pindex = OFF_TO_IDX(entry->offset); count = OFF_TO_IDX(size); /* @@ -1251,8 +1251,8 @@ vm_map_madvise(map, pmap, start, end, advise) { vm_pindex_t pindex; int count; - vm_size_t size = entry->end - entry->start; - pindex = OFF_TO_IDX(entry->offset); + vm_size_t size = current->end - current->start; + pindex = OFF_TO_IDX(current->offset); count = OFF_TO_IDX(size); vm_object_madvise(current->object.vm_object, pindex, count, advise); |