summaryrefslogtreecommitdiffstats
path: root/sys/cam/scsi
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2009-12-09 14:21:21 +0000
committermav <mav@FreeBSD.org>2009-12-09 14:21:21 +0000
commit7424576c8415f2c18050a3124b36ae34c2d5907a (patch)
tree6ad93fedbaadfaf0b79c952b799c4f1e71dc3c37 /sys/cam/scsi
parent8800df93b5e431d19f0348c2de296bc261a78296 (diff)
downloadFreeBSD-src-7424576c8415f2c18050a3124b36ae34c2d5907a.zip
FreeBSD-src-7424576c8415f2c18050a3124b36ae34c2d5907a.tar.gz
Clear result before requesting XPT_PATH_INQ.
Many SIMs doesn't fill maxio field yet.
Diffstat (limited to 'sys/cam/scsi')
-rw-r--r--sys/cam/scsi/scsi_cd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/cam/scsi/scsi_cd.c b/sys/cam/scsi/scsi_cd.c
index b740953..43b757a 100644
--- a/sys/cam/scsi/scsi_cd.c
+++ b/sys/cam/scsi/scsi_cd.c
@@ -673,6 +673,7 @@ cdregister(struct cam_periph *periph, void *arg)
softc->quirks = CD_Q_NONE;
/* Check if the SIM does not want 6 byte commands */
+ bzero(&cpi, sizeof(cpi));
xpt_setup_ccb(&cpi.ccb_h, periph->path, CAM_PRIORITY_NORMAL);
cpi.ccb_h.func_code = XPT_PATH_INQ;
xpt_action((union ccb *)&cpi);
OpenPOWER on IntegriCloud