aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-taskfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/ide-taskfile.c')
-rw-r--r--drivers/ide/ide-taskfile.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/ide/ide-taskfile.c b/drivers/ide/ide-taskfile.c
index f99a6aaad9eb..e9d008ef3f33 100644
--- a/drivers/ide/ide-taskfile.c
+++ b/drivers/ide/ide-taskfile.c
@@ -289,10 +289,12 @@ static void ide_error_cmd(ide_drive_t *drive, struct ide_cmd *cmd)
289 289
290void ide_finish_cmd(ide_drive_t *drive, struct ide_cmd *cmd, u8 stat) 290void ide_finish_cmd(ide_drive_t *drive, struct ide_cmd *cmd, u8 stat)
291{ 291{
292 struct request *rq = drive->hwif->rq;
292 u8 err = ide_read_error(drive); 293 u8 err = ide_read_error(drive);
293 294
294 ide_complete_cmd(drive, cmd, stat, err); 295 ide_complete_cmd(drive, cmd, stat, err);
295 ide_complete_rq(drive, err); 296 rq->errors = err;
297 ide_complete_rq(drive, err ? -EIO : 0);
296} 298}
297 299
298/* 300/*