summaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_hpt366.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2006-11-29 11:26:47 +0900
committerTejun Heo <htejun@gmail.com>2006-11-29 14:57:58 +0900
commitafdfe899e6420eac6c5eb3bc8c89456dff38d40e (patch)
tree207fe02b2950d4c915d8ad0ff3cb4c50d13e5440 /drivers/ata/pata_hpt366.c
parent41669553353554211310cdb23079d58af1fda41e (diff)
downloadop-kernel-dev-afdfe899e6420eac6c5eb3bc8c89456dff38d40e.zip
op-kernel-dev-afdfe899e6420eac6c5eb3bc8c89456dff38d40e.tar.gz
[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/pata_hpt366.c')
-rw-r--r--drivers/ata/pata_hpt366.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ata/pata_hpt366.c b/drivers/ata/pata_hpt366.c
index 6d3e4c0..c0e150a9 100644
--- a/drivers/ata/pata_hpt366.c
+++ b/drivers/ata/pata_hpt366.c
@@ -329,6 +329,7 @@ static struct scsi_host_template hpt36x_sht = {
.proc_name = DRV_NAME,
.dma_boundary = ATA_DMA_BOUNDARY,
.slave_configure = ata_scsi_slave_config,
+ .slave_destroy = ata_scsi_slave_destroy,
.bios_param = ata_std_bios_param,
};
OpenPOWER on IntegriCloud