diff options
author | 2002-10-06 22:04:41 +0000 | |
---|---|---|
committer | 2002-10-06 22:04:41 +0000 | |
commit | 6d57eab3bcfe981fd5b841c4804ab704933291d3 (patch) | |
tree | 3fd7ebc9cf9c34e2e9be8ad9e6cd31078fac552b | |
parent | nbuf doesn't belong here. It's declared on all architectures instead. (diff) | |
download | wireguard-openbsd-6d57eab3bcfe981fd5b841c4804ab704933291d3.tar.xz wireguard-openbsd-6d57eab3bcfe981fd5b841c4804ab704933291d3.zip |
Initialize the result list in uvm_pglistalloc.
-rw-r--r-- | sys/uvm/uvm_pglist.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/uvm/uvm_pglist.c b/sys/uvm/uvm_pglist.c index 7d89a04c969..3f9cf3b4e28 100644 --- a/sys/uvm/uvm_pglist.c +++ b/sys/uvm/uvm_pglist.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_pglist.c,v 1.12 2001/12/19 08:58:07 art Exp $ */ +/* $OpenBSD: uvm_pglist.c,v 1.13 2002/10/06 22:04:41 art Exp $ */ /* $NetBSD: uvm_pglist.c,v 1.13 2001/02/18 21:19:08 chs Exp $ */ /*- @@ -120,6 +120,8 @@ uvm_pglistalloc(size, low, high, alignment, boundary, rlist, nsegs, waitok) /* Default to "lose". */ error = ENOMEM; + TAILQ_INIT(rlist); + /* * Block all memory allocation and lock the free list. */ |