diff options
| author | Matthew Dillon <dillon@FreeBSD.org> | 2002-03-07 03:54:56 +0000 |
|---|---|---|
| committer | Matthew Dillon <dillon@FreeBSD.org> | 2002-03-07 03:54:56 +0000 |
| commit | 8c5dffe8cafee8addbc1229902ebba5b7d1f62a6 (patch) | |
| tree | 50210a5590ae49acc9bd69a681abe9f2df3c3161 | |
| parent | e5bc97cf7f6cc71d226cc0d81b64ce618e49773b (diff) | |
Notes
| -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 8b7a230cea7a..7a2cd7033e6a 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)) |
