diff options
author | 2010-09-26 21:03:56 +0000 | |
---|---|---|
committer | 2010-09-26 21:03:56 +0000 | |
commit | 1bba1af71490ec097b40089a36d2b396093c448d (patch) | |
tree | 6d65bdae24ca5d4a1c1f142d924dc825f576749a /sys/kern/subr_pool.c | |
parent | Two new options: (diff) | |
download | wireguard-openbsd-1bba1af71490ec097b40089a36d2b396093c448d.tar.xz wireguard-openbsd-1bba1af71490ec097b40089a36d2b396093c448d.zip |
unify some pool and malloc flag values. the important bit is that all flags
have real values, no 0 values anymore.
ok deraadt kettenis krw matthew oga thib
Diffstat (limited to 'sys/kern/subr_pool.c')
-rw-r--r-- | sys/kern/subr_pool.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/subr_pool.c b/sys/kern/subr_pool.c index 5b9a354e423..59935c1f672 100644 --- a/sys/kern/subr_pool.c +++ b/sys/kern/subr_pool.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_pool.c,v 1.97 2010/09/21 01:09:10 matthew Exp $ */ +/* $OpenBSD: subr_pool.c,v 1.98 2010/09/26 21:03:57 tedu Exp $ */ /* $NetBSD: subr_pool.c,v 1.61 2001/09/26 07:14:56 chs Exp $ */ /*- @@ -453,6 +453,8 @@ pool_get(struct pool *pp, int flags) { void *v; + KASSERT(flags & (PR_WAITOK | PR_NOWAIT)); + #ifdef DIAGNOSTIC if ((flags & PR_WAITOK) != 0) assertwaitok(); |