[Midnightbsd-cvs] src [9793] trunk/sbin/camcontrol/camcontrol.c: if expander returns 0x00 no device attached, ignore the SAS address.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat Feb 24 14:35:19 EST 2018


Revision: 9793
          http://svnweb.midnightbsd.org/src/?rev=9793
Author:   laffer1
Date:     2018-02-24 14:35:19 -0500 (Sat, 24 Feb 2018)
Log Message:
-----------
if expander returns 0x00 no device attached, ignore the SAS address.

Modified Paths:
--------------
    trunk/sbin/camcontrol/camcontrol.c

Modified: trunk/sbin/camcontrol/camcontrol.c
===================================================================
--- trunk/sbin/camcontrol/camcontrol.c	2018-02-24 19:32:04 UTC (rev 9792)
+++ trunk/sbin/camcontrol/camcontrol.c	2018-02-24 19:35:19 UTC (rev 9793)
@@ -7137,8 +7137,12 @@
 			continue;
 		}
 
-		item = findsasdevice(&devlist,
-			scsi_8btou64(disresponse->attached_sas_address));
+		if (disresponse->attached_device == SMP_DIS_AD_TYPE_NONE) {
+			item = NULL;
+		} else {
+			item = findsasdevice(&devlist,
+			    scsi_8btou64(disresponse->attached_sas_address));
+		}
 
 		if ((quiet == 0)
 		 || (item != NULL)) {



More information about the Midnightbsd-cvs mailing list