aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/ata_generic.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2006-11-28 21:26:47 -0500
committerTejun Heo <htejun@gmail.com>2006-11-29 00:57:58 -0500
commitafdfe899e6420eac6c5eb3bc8c89456dff38d40e (patch)
tree207fe02b2950d4c915d8ad0ff3cb4c50d13e5440 /drivers/ata/ata_generic.c
parent41669553353554211310cdb23079d58af1fda41e (diff)
[PATCH] libata: add missing sht->slave_destroy
Many LLDs are missing sht->slave_destroy. The method is mandatory to support device warm unplugging (echo 1 > /sys/.../delete). Without it, libata might access released scsi device. Signed-off-by: Tejun Heo <htejun@gmail.com>
Diffstat (limited to 'drivers/ata/ata_generic.c')
-rw-r--r--drivers/ata/ata_generic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ata/ata_generic.c b/drivers/ata/ata_generic.c
index 377425e71391..4a80ff9312b8 100644
--- a/drivers/ata/ata_generic.c
+++ b/drivers/ata/ata_generic.c
@@ -116,6 +116,7 @@ static struct scsi_host_template generic_sht = {
116 .proc_name = DRV_NAME, 116 .proc_name = DRV_NAME,
117 .dma_boundary = ATA_DMA_BOUNDARY, 117 .dma_boundary = ATA_DMA_BOUNDARY,
118 .slave_configure = ata_scsi_slave_config, 118 .slave_configure = ata_scsi_slave_config,
119 .slave_destroy = ata_scsi_slave_destroy,
119 .bios_param = ata_std_bios_param, 120 .bios_param = ata_std_bios_param,
120}; 121};
121 122