From: Tejun Heo Date: Mon, 3 Sep 2007 03:20:11 +0000 (+0900) Subject: libata clear horkage on ata_dev_init() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3dcc323fe8d7158bd662c04d41ba8b25fa3ce27b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Jeff Garzik --- 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,