diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2014-12-19 05:48:37 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2014-12-19 05:48:37 +0000 |
commit | 3b5bc4d02540353086acbd670dab8ebbf1e357f6 (patch) | |
tree | 0f7c3cb9df1af228c80c46ffec904fc0af01e196 /sys/dev | |
parent | 00de7e2556f757ac2766d09a4ae6a0ccd802ba04 (diff) |
if you really must look inside the pool to decide if you've called
pool_init already, the pr_size field is the least worst field to peek at.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/cardbus/cardslot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/cardbus/cardslot.c b/sys/dev/cardbus/cardslot.c index 661467a3919..a1f46dc0ced 100644 --- a/sys/dev/cardbus/cardslot.c +++ b/sys/dev/cardbus/cardslot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cardslot.c,v 1.16 2013/10/30 08:47:20 mpi Exp $ */ +/* $OpenBSD: cardslot.c,v 1.17 2014/12/19 05:48:36 tedu Exp $ */ /* $NetBSD: cardslot.c,v 1.9 2000/03/22 09:35:06 haya Exp $ */ /* @@ -103,7 +103,7 @@ cardslotattach(struct device *parent, struct device *self, void *aux) struct cardbus_softc *csc = NULL; struct pcmcia_softc *psc = NULL; - if (cardsloteventpool.pr_align == 0) + if (cardsloteventpool.pr_size == 0) pool_init(&cardsloteventpool, sizeof(struct cardslot_event), 0, 0, 0, "cardslot", NULL); |