svn commit: r314762 - stable/11/sys/cam/ctl

Alexander Motin mav at FreeBSD.org
Mon Mar 6 06:42:49 UTC 2017


Author: mav
Date: Mon Mar  6 06:42:47 2017
New Revision: 314762
URL: https://svnweb.freebsd.org/changeset/base/314762

Log:
  MFC r314496: Add check missed in r314257.

Modified:
  stable/11/sys/cam/ctl/ctl.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/cam/ctl/ctl.c
==============================================================================
--- stable/11/sys/cam/ctl/ctl.c	Mon Mar  6 06:41:06 2017	(r314761)
+++ stable/11/sys/cam/ctl/ctl.c	Mon Mar  6 06:42:47 2017	(r314762)
@@ -9549,7 +9549,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-stable-11 mailing list