diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2002-02-22 01:20:14 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2002-02-22 01:20:14 +0000 |
commit | 169a60df9e67536568b3abed6a396f524aa4d618 (patch) | |
tree | 8490a1dc1922fec17857f1a2b1fcb1d95d183ef6 | |
parent | 34be321ef27cfefb45affdab227f8e4e55fe6cca (diff) |
Check the right return value in the second mmap.
-rw-r--r-- | regress/sys/uvm/misc/misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/regress/sys/uvm/misc/misc.c b/regress/sys/uvm/misc/misc.c index 9fff553312b..5a9abe0661e 100644 --- a/regress/sys/uvm/misc/misc.c +++ b/regress/sys/uvm/misc/misc.c @@ -179,7 +179,7 @@ main(argc, argv) printf(">>> MAPPING ANOTHER %d PAGE ANONYMOUS REGION <<<\n", npgs); addr2 = mmap(NULL, npgs * pgsize, PROT_READ, MAP_ANON, -1, (off_t) 0); - if (addr == MAP_FAILED) + if (addr2 == MAP_FAILED) err(1, "mmap anon #2"); printf(" CHECKING RESIDENCY\n"); |