diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/vm/vm_map.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index 8b7a230..7a2cd70 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -1882,8 +1882,11 @@ vm_map_clean( * to write out. * We invalidate (remove) all pages from the address space * anyway, for semantic correctness. + * + * note: certain anonymous maps, such as MAP_NOSYNC maps, + * may start out with a NULL object. */ - while (object->backing_object) { + while (object && object->backing_object) { object = object->backing_object; offset += object->backing_object_offset; if (object->size < OFF_TO_IDX( offset + size)) |