diff options
author | Tejun Heo <htejun@gmail.com> | 2006-11-29 03:26:47 +0100 |
---|---|---|
committer | Tejun Heo <htejun@gmail.com> | 2006-11-29 06:57:58 +0100 |
commit | afdfe899e6420eac6c5eb3bc8c89456dff38d40e (patch) | |
tree | 207fe02b2950d4c915d8ad0ff3cb4c50d13e5440 /drivers/ata/pata_artop.c | |
parent | [PATCH] ahci: ignore PORT_IRQ_IF_ERR on JMB controllers (diff) | |
download | linux-afdfe899e6420eac6c5eb3bc8c89456dff38d40e.tar.xz linux-afdfe899e6420eac6c5eb3bc8c89456dff38d40e.zip |
[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_artop.c')
-rw-r--r-- | drivers/ata/pata_artop.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ata/pata_artop.c b/drivers/ata/pata_artop.c index 96a098020a8f..2cd30761ca1f 100644 --- a/drivers/ata/pata_artop.c +++ b/drivers/ata/pata_artop.c @@ -314,6 +314,7 @@ static struct scsi_host_template artop_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, }; |