summaryrefslogtreecommitdiffstats
path: root/sys/isa/pnpparse.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/isa/pnpparse.c')
-rw-r--r--sys/isa/pnpparse.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/isa/pnpparse.c b/sys/isa/pnpparse.c
index 8c66716..976b0eb 100644
--- a/sys/isa/pnpparse.c
+++ b/sys/isa/pnpparse.c
@@ -62,12 +62,11 @@ pnp_parse_resources(device_t dev, u_char *resources, int len, u_int32_t vendor_i
id = isa_get_logicalid(dev);
configs = (struct isa_config *)malloc(sizeof(*configs) * (1 + MAXDEP),
- M_DEVBUF, M_NOWAIT);
+ M_DEVBUF, M_NOWAIT | M_ZERO);
if (configs == NULL) {
device_printf(dev, "No memory to parse PNP data\n");
return;
}
- bzero(configs, sizeof(*configs) * (1 + MAXDEP));
config = &configs[0];
priorities[0] = 0;
resp = resources;
OpenPOWER on IntegriCloud