summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/firewire/firewire.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/firewire/firewire.c b/sys/dev/firewire/firewire.c
index 6447d4c..4d6c99e 100644
--- a/sys/dev/firewire/firewire.c
+++ b/sys/dev/firewire/firewire.c
@@ -1215,7 +1215,8 @@ loop:
fc->ongoeui.hi = 0xffffffff; fc->ongoeui.lo = 0xffffffff;
goto loop;
}
- fwdev = malloc(sizeof(struct fw_device), M_FW, M_NOWAIT);
+ fwdev = malloc(sizeof(struct fw_device), M_FW,
+ M_NOWAIT | M_ZERO);
if(fwdev == NULL)
return;
fwdev->fc = fc;
OpenPOWER on IntegriCloud