diff options
author | mav <mav@FreeBSD.org> | 2017-03-06 06:42:47 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2017-03-06 06:42:47 +0000 |
commit | 226198def7ff04a61f8d3063b030da4d4bb28ba4 (patch) | |
tree | 14f3674b9e6f75793b2a747be97d96a27ba8292d | |
parent | 4ea1b9886addd918cc99165096a638467fabf739 (diff) | |
download | FreeBSD-src-226198def7ff04a61f8d3063b030da4d4bb28ba4.zip FreeBSD-src-226198def7ff04a61f8d3063b030da4d4bb28ba4.tar.gz |
MFC r314496: Add check missed in r314257.
-rw-r--r-- | sys/cam/ctl/ctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cam/ctl/ctl.c b/sys/cam/ctl/ctl.c index cab7319..ace40b8 100644 --- a/sys/cam/ctl/ctl.c +++ b/sys/cam/ctl/ctl.c @@ -9549,7 +9549,7 @@ ctl_inquiry_evpd_devid(struct ctl_scsiio *ctsio, int alloc_len) 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; |