]> git.baikalelectronics.ru Git - kernel.git/commit
ide: expiry() returns int, negative expiry() return values won't be noticed
authorRoel Kluin <roel.kluin@gmail.com>
Thu, 5 Mar 2009 15:10:55 +0000 (16:10 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Thu, 5 Mar 2009 15:10:55 +0000 (16:10 +0100)
commited4e0133c7e1304432a3da2f02b47b9a08e754fd
tree5e1c311878095b66aa67712334d4b506a455376f
parent9b689d49551a587b692ec9b1b874d82c049d90a2
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 <roel.kluin@gmail.com>
Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
[bart: port it to the current tree]
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-io.c