diff options
author | Tejun Heo <htejun@gmail.com> | 2006-11-28 21:26:47 -0500 |
---|---|---|
committer | Tejun Heo <htejun@gmail.com> | 2006-11-29 00:57:58 -0500 |
commit | afdfe899e6420eac6c5eb3bc8c89456dff38d40e (patch) | |
tree | 207fe02b2950d4c915d8ad0ff3cb4c50d13e5440 /drivers/ata/pata_hpt3x2n.c | |
parent | 41669553353554211310cdb23079d58af1fda41e (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/pata_hpt3x2n.c')
-rw-r--r-- | drivers/ata/pata_hpt3x2n.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ata/pata_hpt3x2n.c b/drivers/ata/pata_hpt3x2n.c index 58cfb2bc8098..47d7664e9eee 100644 --- a/drivers/ata/pata_hpt3x2n.c +++ b/drivers/ata/pata_hpt3x2n.c | |||
@@ -341,6 +341,7 @@ static struct scsi_host_template hpt3x2n_sht = { | |||
341 | .proc_name = DRV_NAME, | 341 | .proc_name = DRV_NAME, |
342 | .dma_boundary = ATA_DMA_BOUNDARY, | 342 | .dma_boundary = ATA_DMA_BOUNDARY, |
343 | .slave_configure = ata_scsi_slave_config, | 343 | .slave_configure = ata_scsi_slave_config, |
344 | .slave_destroy = ata_scsi_slave_destroy, | ||
344 | .bios_param = ata_std_bios_param, | 345 | .bios_param = ata_std_bios_param, |
345 | }; | 346 | }; |
346 | 347 | ||