aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp/srp
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband/ulp/srp')
-rw-r--r--drivers/infiniband/ulp/srp/ib_srp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c
index d8d056e004bb..e616c4fc6ff0 100644
--- a/drivers/infiniband/ulp/srp/ib_srp.c
+++ b/drivers/infiniband/ulp/srp/ib_srp.c
@@ -1545,6 +1545,7 @@ static int srp_add_target(struct srp_host *host, struct srp_target_port *target)
1545 1545
1546 memcpy(ids.port_id, &target->id_ext, 8); 1546 memcpy(ids.port_id, &target->id_ext, 8);
1547 memcpy(ids.port_id + 8, &target->ioc_guid, 8); 1547 memcpy(ids.port_id + 8, &target->ioc_guid, 8);
1548 ids.roles = SRP_RPORT_ROLE_TARGET;
1548 rport = srp_rport_add(target->scsi_host, &ids); 1549 rport = srp_rport_add(target->scsi_host, &ids);
1549 if (IS_ERR(rport)) { 1550 if (IS_ERR(rport)) {
1550 scsi_remove_host(target->scsi_host); 1551 scsi_remove_host(target->scsi_host);