changeset 12987:3086793bcf3c

6914412 FC initiator host panic when FC array mp_support change
author Kevin Yu <Kevin.Yu@Sun.COM>
date Sat, 31 Jul 2010 09:23:10 +0800
parents caf415d9aa53
children 7162c8dfe0ed
files usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c	Fri Jul 30 16:21:50 2010 -0700
+++ b/usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c	Sat Jul 31 09:23:10 2010 +0800
@@ -5097,6 +5097,8 @@
 	psd = svp->svp_psd;
 	ASSERT(psd != NULL);
 
+	ap = &psd->sd_address;
+
 	/*
 	 * Get inquiry data into pathinfo related scsi_device structure.
 	 * Free sq_inq when pathinfo related scsi_device structure is destroyed
@@ -5207,7 +5209,6 @@
 			 * IBM Shark storage does not clear RESERVE upon
 			 * host reboot.
 			 */
-			ap = &psd->sd_address;
 			pkt = scsi_init_pkt(ap, NULL, NULL, CDB_GROUP0,
 			    sizeof (struct scsi_arq_status), 0, 0,
 			    SLEEP_FUNC, NULL);