]> err.no Git - linux-2.6/blobdiff - drivers/scsi/scsi_transport_sas.c
Merge master.kernel.org:/pub/scm/linux/kernel/git/sam/kbuild
[linux-2.6] / drivers / scsi / scsi_transport_sas.c
index 2c96fc5683ff2526993a8a30438d334ed6cc9212..8b6d65e21bae3a23ac362d65ac9b95d57732b6f3 100644 (file)
@@ -845,6 +845,8 @@ int sas_rphy_add(struct sas_rphy *rphy)
            (identify->target_port_protocols &
             (SAS_PROTOCOL_SSP|SAS_PROTOCOL_STP|SAS_PROTOCOL_SATA)))
                rphy->scsi_target_id = sas_host->next_target_id++;
+       else if (identify->device_type == SAS_END_DEVICE)
+               rphy->scsi_target_id = -1;
        mutex_unlock(&sas_host->lock);
 
        if (identify->device_type == SAS_END_DEVICE &&