diff options
Diffstat (limited to 'drivers/infiniband/ulp/srp/ib_srp.c')
-rw-r--r-- | drivers/infiniband/ulp/srp/ib_srp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c index 321a3a10e69b..a3645303cb99 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.c +++ b/drivers/infiniband/ulp/srp/ib_srp.c | |||
@@ -1417,6 +1417,8 @@ static ssize_t srp_create_target(struct class_device *class_dev, | |||
1417 | if (!target_host) | 1417 | if (!target_host) |
1418 | return -ENOMEM; | 1418 | return -ENOMEM; |
1419 | 1419 | ||
1420 | target_host->max_lun = SRP_MAX_LUN; | ||
1421 | |||
1420 | target = host_to_target(target_host); | 1422 | target = host_to_target(target_host); |
1421 | memset(target, 0, sizeof *target); | 1423 | memset(target, 0, sizeof *target); |
1422 | 1424 | ||