Module Name: src Committed By: matt Date: Sat Jun 22 05:37:06 UTC 2013
Modified Files: src/sys/dev/pci: pciide_common.c Log Message: When allocating the channel queue, make sure the return memory is zeroed. To generate a diff of this commit: cvs rdiff -u -r1.58 -r1.59 src/sys/dev/pci/pciide_common.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/pciide_common.c diff -u src/sys/dev/pci/pciide_common.c:1.58 src/sys/dev/pci/pciide_common.c:1.59 --- src/sys/dev/pci/pciide_common.c:1.58 Wed Nov 14 01:04:45 2012 +++ src/sys/dev/pci/pciide_common.c Sat Jun 22 05:37:06 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: pciide_common.c,v 1.58 2012/11/14 01:04:45 jakllsch Exp $ */ +/* $NetBSD: pciide_common.c,v 1.59 2013/06/22 05:37:06 matt Exp $ */ /* @@ -70,7 +70,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pciide_common.c,v 1.58 2012/11/14 01:04:45 jakllsch Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pciide_common.c,v 1.59 2013/06/22 05:37:06 matt Exp $"); #include <sys/param.h> #include <sys/malloc.h> @@ -872,7 +872,7 @@ pciide_chansetup(struct pciide_softc *sc cp->ata_channel.ch_channel = channel; cp->ata_channel.ch_atac = &sc->sc_wdcdev.sc_atac; cp->ata_channel.ch_queue = - malloc(sizeof(struct ata_queue), M_DEVBUF, M_NOWAIT); + malloc(sizeof(struct ata_queue), M_DEVBUF, M_NOWAIT|M_ZERO); if (cp->ata_channel.ch_queue == NULL) { aprint_error("%s %s channel: " "can't allocate memory for command queue",