svn commit: r200295 - head/sys/cam/scsi

Alexander Motin mav at FreeBSD.org
Wed Dec 9 06:21:22 PST 2009


Author: mav
Date: Wed Dec  9 14:21:21 2009
New Revision: 200295
URL: http://svn.freebsd.org/changeset/base/200295

Log:
  Clear result before requesting XPT_PATH_INQ.
  Many SIMs doesn't fill maxio field yet.

Modified:
  head/sys/cam/scsi/scsi_cd.c

Modified: head/sys/cam/scsi/scsi_cd.c
==============================================================================
--- head/sys/cam/scsi/scsi_cd.c	Wed Dec  9 13:32:49 2009	(r200294)
+++ head/sys/cam/scsi/scsi_cd.c	Wed Dec  9 14:21:21 2009	(r200295)
@@ -673,6 +673,7 @@ cdregister(struct cam_periph *periph, vo
 		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);


More information about the svn-src-head mailing list