Skip to contentSkip to conversation

: libata clear horkage on ata_dev_init()

PATCH Applied Tejun Heo 2 participants 2 messages Sep 3, 2007 – Sep 11, 2007 libata

lore
Share & tools
lore

Tejun Heo

author
#0 lore raw

PATCH 1/1 : libata clear horkage on ata_dev_init()

dev->horkage should be cleared over device hotunplug/plug. Clear it in ata_dev_init().

---
 drivers/ata/libata-core.c |    1 +
 1 file changed, 1 insertion(+)
drivers/ata/libata-core.c +1 -0
index 2ad4dda..112e7a9 100644
@@ -6025,6 +6025,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,
Applied
#1 lore raw
Quoted 7 lines · Tejun Heo

dev->horkage should be cleared over device hotunplug/plug. Clear it in ata_dev_init().

---
 drivers/ata/libata-core.c |    1 +
 1 file changed, 1 insertion(+)

applied