summaryrefslogtreecommitdiff
path: root/sys/dev/pcmcia/pcmcia_cis.c
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2007-09-07 18:21:41 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2007-09-07 18:21:41 +0000
commitd83947b3f17c6d8eca84ee2f3e612d474f12ddc1 (patch)
treed0e543b22cdb173992e7bb2a15b27184fde785be /sys/dev/pcmcia/pcmcia_cis.c
parent93e664b28ff9693b27c8996a6eccc0b8f5f3af87 (diff)
sprinkle some M_ZERO love.
Diffstat (limited to 'sys/dev/pcmcia/pcmcia_cis.c')
-rw-r--r--sys/dev/pcmcia/pcmcia_cis.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/pcmcia/pcmcia_cis.c b/sys/dev/pcmcia/pcmcia_cis.c
index f7856a3ad7b..52dba7ab474 100644
--- a/sys/dev/pcmcia/pcmcia_cis.c
+++ b/sys/dev/pcmcia/pcmcia_cis.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcmcia_cis.c,v 1.13 2005/08/01 21:58:01 fgsch Exp $ */
+/* $OpenBSD: pcmcia_cis.c,v 1.14 2007/09/07 18:21:40 fgsch Exp $ */
/* $NetBSD: pcmcia_cis.c,v 1.9 1998/08/22 23:41:48 msaitoh Exp $ */
/*
@@ -845,10 +845,9 @@ pcmcia_parse_cis_tuple(tuple, arg)
}
if (state->pf == NULL) {
state->pf = malloc(sizeof(*state->pf), M_DEVBUF,
- M_NOWAIT);
+ M_NOWAIT|M_ZERO);
if (state->pf == NULL)
panic("pcmcia_parse_cis_tuple");
- bzero(state->pf, sizeof(*state->pf));
state->pf->number = state->count++;
state->pf->last_config_index = -1;
SIMPLEQ_INIT(&state->pf->cfe_head);
@@ -886,10 +885,9 @@ pcmcia_parse_cis_tuple(tuple, arg)
}
if (state->pf == NULL) {
state->pf = malloc(sizeof(*state->pf),
- M_DEVBUF, M_NOWAIT);
+ M_DEVBUF, M_NOWAIT|M_ZERO);
if (state->pf == NULL)
panic("pcmcia_parse_cis_tuple");
- bzero(state->pf, sizeof(*state->pf));
state->pf->number = state->count++;
state->pf->last_config_index = -1;
SIMPLEQ_INIT(&state->pf->cfe_head);