aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband/ulp')
-rw-r--r--drivers/infiniband/ulp/srp/ib_srp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c
index 4b09147f438f..613be2ef9c52 100644
--- a/drivers/infiniband/ulp/srp/ib_srp.c
+++ b/drivers/infiniband/ulp/srp/ib_srp.c
@@ -1716,7 +1716,8 @@ static ssize_t srp_create_target(struct class_device *class_dev,
1716 if (!target_host) 1716 if (!target_host)
1717 return -ENOMEM; 1717 return -ENOMEM;
1718 1718
1719 target_host->max_lun = SRP_MAX_LUN; 1719 target_host->max_lun = SRP_MAX_LUN;
1720 target_host->max_cmd_len = sizeof ((struct srp_cmd *) (void *) 0L)->cdb;
1720 1721
1721 target = host_to_target(target_host); 1722 target = host_to_target(target_host);
1722 1723