diff options
author | simokawa <simokawa@FreeBSD.org> | 2003-06-03 22:58:22 +0000 |
---|---|---|
committer | simokawa <simokawa@FreeBSD.org> | 2003-06-03 22:58:22 +0000 |
commit | 402bb3520a1e205daa3eff219c0e2ce7e45be94d (patch) | |
tree | 863632dcc516d2f7d2fda5f98262ee0543a2dce5 /sys | |
parent | 8c022bf81b34414608d7d1932582f42f39df07c1 (diff) | |
download | FreeBSD-src-402bb3520a1e205daa3eff219c0e2ce7e45be94d.zip FreeBSD-src-402bb3520a1e205daa3eff219c0e2ce7e45be94d.tar.gz |
Allocate zeroed space for fwdev.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/firewire/firewire.c | 3 |
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; |