diff options
-rw-r--r-- | drivers/scsi/scsi_debug.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_debug.c b/drivers/scsi/scsi_debug.c index 2e32a4c09fbc..0d0e0593e3c5 100644 --- a/drivers/scsi/scsi_debug.c +++ b/drivers/scsi/scsi_debug.c | |||
@@ -4438,6 +4438,7 @@ static ssize_t virtual_gb_store(struct device_driver *ddp, const char *buf, | |||
4438 | struct sdebug_host_info *sdhp; | 4438 | struct sdebug_host_info *sdhp; |
4439 | struct sdebug_dev_info *dp; | 4439 | struct sdebug_dev_info *dp; |
4440 | 4440 | ||
4441 | spin_lock(&sdebug_host_list_lock); | ||
4441 | list_for_each_entry(sdhp, &sdebug_host_list, | 4442 | list_for_each_entry(sdhp, &sdebug_host_list, |
4442 | host_list) { | 4443 | host_list) { |
4443 | list_for_each_entry(dp, &sdhp->dev_info_list, | 4444 | list_for_each_entry(dp, &sdhp->dev_info_list, |
@@ -4446,6 +4447,7 @@ static ssize_t virtual_gb_store(struct device_driver *ddp, const char *buf, | |||
4446 | dp->uas_bm); | 4447 | dp->uas_bm); |
4447 | } | 4448 | } |
4448 | } | 4449 | } |
4450 | spin_unlock(&sdebug_host_list_lock); | ||
4449 | } | 4451 | } |
4450 | return count; | 4452 | return count; |
4451 | } | 4453 | } |