diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2000-10-29 15:47:16 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2000-10-29 15:47:16 +0000 |
commit | 7d9d396fd545532b28c0dea8ef9f385b4fff4578 (patch) | |
tree | b0111113d7d91dcd25f09237023149e8ffd0f996 /sys/dev/advansys | |
parent | f8eaa3d8016b5b89b5f98f3e579e75ed926fc118 (diff) | |
download | FreeBSD-src-7d9d396fd545532b28c0dea8ef9f385b4fff4578.zip FreeBSD-src-7d9d396fd545532b28c0dea8ef9f385b4fff4578.tar.gz |
Add the use of M_ZERO to some malloc calls.
Submitted by: josh@zipperup.org
Submitted by: Robert Drehmel <robd@gmx.net>
Approved by: gibbs
Diffstat (limited to 'sys/dev/advansys')
-rw-r--r-- | sys/dev/advansys/adwcam.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/advansys/adwcam.c b/sys/dev/advansys/adwcam.c index 77c1718..3c9b00b 100644 --- a/sys/dev/advansys/adwcam.c +++ b/sys/dev/advansys/adwcam.c @@ -824,12 +824,11 @@ adw_alloc(device_t dev, struct resource *regs, int regs_type, int regs_id) /* * Allocate a storage area for us */ - adw = malloc(sizeof(struct adw_softc), M_DEVBUF, M_NOWAIT); + adw = malloc(sizeof(struct adw_softc), M_DEVBUF, M_NOWAIT | M_ZERO); if (adw == NULL) { printf("adw%d: cannot malloc!\n", device_get_unit(dev)); return NULL; } - bzero(adw, sizeof(struct adw_softc)); LIST_INIT(&adw->pending_ccbs); SLIST_INIT(&adw->sg_maps); adw->device = dev; |