diff options
-rw-r--r-- | drivers/ide/ide-io.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c index 3addbe478d26..e41383fa3a51 100644 --- a/drivers/ide/ide-io.c +++ b/drivers/ide/ide-io.c | |||
@@ -388,7 +388,8 @@ void ide_end_drive_cmd (ide_drive_t *drive, u8 stat, u8 err) | |||
388 | spin_lock_irqsave(&ide_lock, flags); | 388 | spin_lock_irqsave(&ide_lock, flags); |
389 | HWGROUP(drive)->rq = NULL; | 389 | HWGROUP(drive)->rq = NULL; |
390 | rq->errors = err; | 390 | rq->errors = err; |
391 | if (__blk_end_request(rq, (rq->errors ? -EIO : 0), 0)) | 391 | if (unlikely(__blk_end_request(rq, (rq->errors ? -EIO : 0), |
392 | blk_rq_bytes(rq)))) | ||
392 | BUG(); | 393 | BUG(); |
393 | spin_unlock_irqrestore(&ide_lock, flags); | 394 | spin_unlock_irqrestore(&ide_lock, flags); |
394 | } | 395 | } |