From: Bartlomiej Zolnierkiewicz Date: Sat, 26 Jan 2008 19:13:10 +0000 (+0100) Subject: ide: fix final status check in task_in_intr() X-Git-Tag: v2.6.25-rc1~1227^2~15 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=73d7de0c818639cf74a32ce3b13a33021414749c;p=linux-2.6-omap-h63xx.git ide: fix final status check in task_in_intr() Check for DRQ bit being cleared on the final status check. Acked-by: Sergei Shtylyov Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/ide-taskfile.c b/drivers/ide/ide-taskfile.c index b72a9aea7a5..bc3d8aed9a8 100644 --- a/drivers/ide/ide-taskfile.c +++ b/drivers/ide/ide-taskfile.c @@ -454,7 +454,7 @@ static ide_startstop_t task_in_intr(ide_drive_t *drive) /* If it was the last datablock check status and finish transfer. */ if (!hwif->nleft) { stat = wait_drive_not_busy(drive); - if (!OK_STAT(stat, 0, BAD_R_STAT)) + if (!OK_STAT(stat, 0, BAD_STAT)) return task_error(drive, rq, __FUNCTION__, stat); task_end_request(drive, rq, stat); return ide_stopped;