diff options
author | sos <sos@FreeBSD.org> | 1999-01-31 23:08:47 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 1999-01-31 23:08:47 +0000 |
commit | 1f20179a0d4813213ae08a590325ae9a4b647187 (patch) | |
tree | eee523d8f078a212a12498b83fde525a7f168d7a /sys/i386/isa/wd_cd.c | |
parent | 01e8e49aa19b9e64c43644bdbc1a88277652137c (diff) | |
download | FreeBSD-src-1f20179a0d4813213ae08a590325ae9a4b647187.zip FreeBSD-src-1f20179a0d4813213ae08a590325ae9a4b647187.tar.gz |
Bzero the devstat structure before use.
Pointed out by: <Kenneth Merry> ken@plutotech.com
Diffstat (limited to 'sys/i386/isa/wd_cd.c')
-rw-r--r-- | sys/i386/isa/wd_cd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/i386/isa/wd_cd.c b/sys/i386/isa/wd_cd.c index 523ca69..be09c36 100644 --- a/sys/i386/isa/wd_cd.c +++ b/sys/i386/isa/wd_cd.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: atapi-cd.c,v 1.8 1999/01/30 12:21:43 phk Exp $ + * $Id: atapi-cd.c,v 1.9 1999/01/31 21:51:03 sos Exp $ */ #include "wdc.h" @@ -133,6 +133,7 @@ acd_init_lun(struct atapi *ata, int unit, struct atapi_params *ap, int lun, if (!(ptr->device_stats = malloc(sizeof(struct devstat), M_TEMP, M_NOWAIT))) return NULL; + bzero(ptr->device_stats, sizeof(struct devstat)); } else ptr->device_stats = device_stats; |