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;
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to