diff options
-rw-r--r-- | drivers/scsi/scsi_transport_fc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_transport_fc.c b/drivers/scsi/scsi_transport_fc.c index 4953f0dca029..e8825709797e 100644 --- a/drivers/scsi/scsi_transport_fc.c +++ b/drivers/scsi/scsi_transport_fc.c | |||
@@ -1943,6 +1943,9 @@ static int fc_user_scan(struct Scsi_Host *shost, uint channel, | |||
1943 | if (rport->scsi_target_id == -1) | 1943 | if (rport->scsi_target_id == -1) |
1944 | continue; | 1944 | continue; |
1945 | 1945 | ||
1946 | if (rport->port_state != FC_PORTSTATE_ONLINE) | ||
1947 | continue; | ||
1948 | |||
1946 | if ((channel == SCAN_WILD_CARD || channel == rport->channel) && | 1949 | if ((channel == SCAN_WILD_CARD || channel == rport->channel) && |
1947 | (id == SCAN_WILD_CARD || id == rport->scsi_target_id)) { | 1950 | (id == SCAN_WILD_CARD || id == rport->scsi_target_id)) { |
1948 | scsi_scan_target(&rport->dev, rport->channel, | 1951 | scsi_scan_target(&rport->dev, rport->channel, |