svn commit: r314496 - head/sys/cam/ctl

Alexander Motin mav at FreeBSD.org
Wed Mar 1 17:35:57 UTC 2017


Author: mav
Date: Wed Mar  1 17:35:56 2017
New Revision: 314496
URL: https://svnweb.freebsd.org/changeset/base/314496

Log:
  Add check missed in r314257.
  
  MFC after:	11 days

Modified:
  head/sys/cam/ctl/ctl.c

Modified: head/sys/cam/ctl/ctl.c
==============================================================================
--- head/sys/cam/ctl/ctl.c	Wed Mar  1 15:39:58 2017	(r314495)
+++ head/sys/cam/ctl/ctl.c	Wed Mar  1 17:35:56 2017	(r314496)
@@ -9550,7 +9550,7 @@ ctl_inquiry_evpd_devid(struct ctl_scsiio
 
 	if (port && port->port_type == CTL_PORT_FC)
 		proto = SCSI_PROTO_FC << 4;
-	else if (port->port_type == CTL_PORT_SAS)
+	else if (port && port->port_type == CTL_PORT_SAS)
 		proto = SCSI_PROTO_SAS << 4;
 	else if (port && port->port_type == CTL_PORT_ISCSI)
 		proto = SCSI_PROTO_ISCSI << 4;


More information about the svn-src-head mailing list