From: Roel Kluin Date: Thu, 5 Mar 2009 15:10:55 +0000 (+0100) Subject: ide: expiry() returns int, negative expiry() return values won't be noticed X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e0c6dcd8d4257a129fc813ac68f20b77c6ae2a7a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ide: expiry() returns int, negative expiry() return values won't be noticed bart: It seems like the bug could cause insanely long timeouts for: - ATA_DMA_ERR error in dma_timer_expiry() - commands without ->expiry in tc86c001_timer_expiry() (TC86C001 IDE controller only) Signed-off-by: Roel Kluin Cc: Sergei Shtylyov Cc: Andrew Morton [bart: port it to the current tree] Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c index 9ee51adf567f..9ff90cb1dbf1 100644 --- a/drivers/ide/ide-io.c +++ b/drivers/ide/ide-io.c @@ -908,7 +908,7 @@ void ide_timer_expiry (unsigned long data) ide_drive_t *uninitialized_var(drive); ide_handler_t *handler; unsigned long flags; - unsigned long wait = -1; + int wait = -1; int plug_device = 0; spin_lock_irqsave(&hwif->lock, flags);