diff options
Diffstat (limited to 'sys/dev/ida')
-rw-r--r-- | sys/dev/ida/ida.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ida/ida.c b/sys/dev/ida/ida.c index 8b8d2a4..83396ae 100644 --- a/sys/dev/ida/ida.c +++ b/sys/dev/ida/ida.c @@ -191,10 +191,10 @@ ida_init(struct ida_softc *ida) bioq_init(&ida->bio_queue); ida->qcbs = (struct ida_qcb *) - malloc(IDA_QCB_MAX * sizeof(struct ida_qcb), M_DEVBUF, M_NOWAIT); + malloc(IDA_QCB_MAX * sizeof(struct ida_qcb), M_DEVBUF, + M_NOWAIT | M_ZERO); if (ida->qcbs == NULL) return (ENOMEM); - bzero(ida->qcbs, IDA_QCB_MAX * sizeof(struct ida_qcb)); /* * Create our DMA tags |