aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-io.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/ide-io.c')
-rw-r--r--drivers/ide/ide-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c
index 93b7886a2d6e..95db5f03f6a2 100644
--- a/drivers/ide/ide-io.c
+++ b/drivers/ide/ide-io.c
@@ -152,7 +152,7 @@ void ide_kill_rq(ide_drive_t *drive, struct request *rq)
152 152
153 if ((media == ide_floppy || media == ide_tape) && drv_req) { 153 if ((media == ide_floppy || media == ide_tape) && drv_req) {
154 rq->errors = 0; 154 rq->errors = 0;
155 ide_complete_rq(drive, 0, blk_rq_bytes(rq)); 155 ide_complete_rq(drive, -EIO, blk_rq_bytes(rq));
156 } else { 156 } else {
157 if (media == ide_tape) 157 if (media == ide_tape)
158 rq->errors = IDE_DRV_ERROR_GENERAL; 158 rq->errors = IDE_DRV_ERROR_GENERAL;