diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-11-30 10:05:33 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-11-30 10:05:33 +0000 |
commit | c0a03e1d970493a9d25a8e407046f05d8c8a09ff (patch) | |
tree | e439c56c6a85480b31ebebe917e229e404836ae6 /sys/dev/usb/umass_scsi.c | |
parent | 6c302872031ca95ab794df1ed8b1ddf909aaa38b (diff) |
unitialized variable, busted by dlg, fixed by dlg
Diffstat (limited to 'sys/dev/usb/umass_scsi.c')
-rw-r--r-- | sys/dev/usb/umass_scsi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/usb/umass_scsi.c b/sys/dev/usb/umass_scsi.c index ddf33188013..39b8056ad8c 100644 --- a/sys/dev/usb/umass_scsi.c +++ b/sys/dev/usb/umass_scsi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: umass_scsi.c,v 1.14 2006/11/28 23:59:45 dlg Exp $ */ +/* $OpenBSD: umass_scsi.c,v 1.15 2006/11/30 10:05:32 deraadt Exp $ */ /* $NetBSD: umass_scsipi.c,v 1.9 2003/02/16 23:14:08 augustss Exp $ */ /* * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -103,6 +103,8 @@ umass_scsi_attach(struct umass_softc *sc) scbus->sc_link.flags |= SDEV_UMASS; scbus->sc_link.device = &umass_scsi_dev; + bzero(&saa, sizeof(saa)); + saa.saa_sc_link = &scbus->sc_link; DPRINTF(UDMASS_USB, ("%s: umass_attach_bus: SCSI\n" "sc = 0x%x, scbus = 0x%x\n", |