summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2015-09-06 12:59:21 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2015-09-06 12:59:21 +0000
commite17ec89aac69a4ddcea0384ff7fe8d24ad7d806a (patch)
tree1b49a6c098546f8d70b27a625ac8ca4b27f9f62c
parent4e989ba41a995767f30059a81a35ba50a6b88256 (diff)
The pppx_if_pl pool will never be used in interrupt context, so pass the
PR_WAITOK flag to pool_init and pass NULL as the pool allocator. ok dlg@
-rw-r--r--sys/net/if_pppx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_pppx.c b/sys/net/if_pppx.c
index 525cd705485..d88e92f5008 100644
--- a/sys/net/if_pppx.c
+++ b/sys/net/if_pppx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pppx.c,v 1.42 2015/07/18 15:51:16 mpi Exp $ */
+/* $OpenBSD: if_pppx.c,v 1.43 2015/09/06 12:59:20 kettenis Exp $ */
/*
* Copyright (c) 2010 Claudio Jeker <claudio@openbsd.org>
@@ -247,8 +247,8 @@ pppxopen(dev_t dev, int flags, int mode, struct proc *p)
if (LIST_EMPTY(&pppx_devs) && pppx_if_pl == NULL) {
pppx_if_pl = malloc(sizeof(*pppx_if_pl), M_DEVBUF, M_WAITOK);
- pool_init(pppx_if_pl, sizeof(struct pppx_if), 0, 0, 0,
- "pppxif", &pool_allocator_nointr);
+ pool_init(pppx_if_pl, sizeof(struct pppx_if), 0, 0, PR_WAITOK,
+ "pppxif", NULL);
}
pxd = malloc(sizeof(*pxd), M_DEVBUF, M_WAITOK | M_ZERO);