Add NULL check to make Coverity happy.
This commit is contained in:
parent
8ad43f2d0a
commit
9f72f0ee52
@ -9760,7 +9760,8 @@ ctl_inquiry_evpd_devid(struct ctl_scsiio *ctsio, int alloc_len)
|
||||
desc->id_type = SVPD_ID_PIV | SVPD_ID_ASSOC_PORT |
|
||||
SVPD_ID_TYPE_TPORTGRP;
|
||||
desc->length = 4;
|
||||
if (softc->is_single || port->status & CTL_PORT_STATUS_HA_SHARED)
|
||||
if (softc->is_single ||
|
||||
(port && port->status & CTL_PORT_STATUS_HA_SHARED))
|
||||
g = 1;
|
||||
else
|
||||
g = 2 + ctsio->io_hdr.nexus.targ_port / softc->port_cnt;
|
||||
|
Loading…
Reference in New Issue
Block a user