diff options
-rw-r--r-- | drivers/ide/ide-io.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c index bef781fec500..bb1b0a884cfc 100644 --- a/drivers/ide/ide-io.c +++ b/drivers/ide/ide-io.c | |||
@@ -1003,6 +1003,7 @@ static ide_startstop_t start_request (ide_drive_t *drive, struct request *rq) | |||
1003 | 1003 | ||
1004 | /* bail early if we've exceeded max_failures */ | 1004 | /* bail early if we've exceeded max_failures */ |
1005 | if (drive->max_failures && (drive->failures > drive->max_failures)) { | 1005 | if (drive->max_failures && (drive->failures > drive->max_failures)) { |
1006 | rq->cmd_flags |= REQ_FAILED; | ||
1006 | goto kill_rq; | 1007 | goto kill_rq; |
1007 | } | 1008 | } |
1008 | 1009 | ||