Skip to contentSkip to conversation

Leftovers

PATCH In review Hannes Reinecke 1 participant 1 message May 23, 2007 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 9/9 Leftovers

Forgot to call scsi_destroy_device() in scsi_forget_host(). Shame on me.

---
 drivers/scsi/scsi_scan.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/scsi/scsi_scan.c +1 -0
index 75b8a78..6a51ac5 100644
@@ -1877,6 +1877,7 @@ void scsi_forget_host(struct Scsi_Host *
 			continue;
 		spin_unlock_irqrestore(shost->host_lock, flags);
 		__scsi_remove_device(sdev);
+		scsi_destroy_device(sdev);
 		goto restart;
 	}
 	spin_unlock_irqrestore(shost->host_lock, flags);
Signature · 1 line
1.4.3.4