aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_sysfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/scsi_sysfs.c')
-rw-r--r--drivers/scsi/scsi_sysfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/scsi_sysfs.c b/drivers/scsi/scsi_sysfs.c
index ea7f3a433572..2cb962751a7e 100644
--- a/drivers/scsi/scsi_sysfs.c
+++ b/drivers/scsi/scsi_sysfs.c
@@ -745,9 +745,9 @@ void scsi_remove_device(struct scsi_device *sdev)
745{ 745{
746 struct Scsi_Host *shost = sdev->host; 746 struct Scsi_Host *shost = sdev->host;
747 747
748 down(&shost->scan_mutex); 748 mutex_lock(&shost->scan_mutex);
749 __scsi_remove_device(sdev); 749 __scsi_remove_device(sdev);
750 up(&shost->scan_mutex); 750 mutex_unlock(&shost->scan_mutex);
751} 751}
752EXPORT_SYMBOL(scsi_remove_device); 752EXPORT_SYMBOL(scsi_remove_device);
753 753