aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_scan.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/scsi_scan.c')
-rw-r--r--drivers/scsi/scsi_scan.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c
index 0f7e6f94d66b..4c31799e2711 100644
--- a/drivers/scsi/scsi_scan.c
+++ b/drivers/scsi/scsi_scan.c
@@ -810,6 +810,7 @@ static int scsi_add_lun(struct scsi_device *sdev, char *inq_result, int *bflags)
810 810
811static inline void scsi_destroy_sdev(struct scsi_device *sdev) 811static inline void scsi_destroy_sdev(struct scsi_device *sdev)
812{ 812{
813 scsi_device_set_state(sdev, SDEV_DEL);
813 if (sdev->host->hostt->slave_destroy) 814 if (sdev->host->hostt->slave_destroy)
814 sdev->host->hostt->slave_destroy(sdev); 815 sdev->host->hostt->slave_destroy(sdev);
815 transport_destroy_device(&sdev->sdev_gendev); 816 transport_destroy_device(&sdev->sdev_gendev);