summaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2007-09-03 05:20:11 +0200
committerJeff Garzik <jeff@garzik.org>2007-09-11 04:07:42 +0200
commit3dcc323fe8d7158bd662c04d41ba8b25fa3ce27b (patch)
tree17625f298bf60da03078c0391b59fbf99f5e0f87 /drivers/ata
parent[libata, IDE] add new VIA bridge to VIA PATA drivers (diff)
downloadlinux-3dcc323fe8d7158bd662c04d41ba8b25fa3ce27b.tar.xz
linux-3dcc323fe8d7158bd662c04d41ba8b25fa3ce27b.zip
libata clear horkage on ata_dev_init()
dev->horkage should be cleared over device hotunplug/plug. Clear it in ata_dev_init(). Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/libata-core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index a3ee087223de..c43de9a710db 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -6035,6 +6035,7 @@ void ata_dev_init(struct ata_device *dev)
*/
spin_lock_irqsave(ap->lock, flags);
dev->flags &= ~ATA_DFLAG_INIT_MASK;
+ dev->horkage = 0;
spin_unlock_irqrestore(ap->lock, flags);
memset((void *)dev + ATA_DEVICE_CLEAR_OFFSET, 0,