Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Dec 2009 14:21:21 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r200295 - head/sys/cam/scsi
Message-ID:  <200912091421.nB9ELL9P027777@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912091421.nB9ELL9P027777>