|
@@ -859,7 +859,7 @@ sdev_store_queue_depth(struct device *dev, struct device_attribute *attr,
|
|
|
|
|
|
depth = simple_strtoul(buf, NULL, 0);
|
|
depth = simple_strtoul(buf, NULL, 0);
|
|
|
|
|
|
- if (depth < 1 || depth > sht->can_queue)
|
|
|
|
|
|
+ if (depth < 1 || depth > sdev->host->can_queue)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
retval = sht->change_queue_depth(sdev, depth);
|
|
retval = sht->change_queue_depth(sdev, depth);
|