diff options
Diffstat (limited to 'drivers/ide/ide-floppy.c')
-rw-r--r-- | drivers/ide/ide-floppy.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c index 407e4914dfd1..572aa9696dad 100644 --- a/drivers/ide/ide-floppy.c +++ b/drivers/ide/ide-floppy.c | |||
@@ -298,6 +298,8 @@ static ide_startstop_t ide_floppy_do_request(ide_drive_t *drive, | |||
298 | return idefloppy_issue_pc(drive, pc); | 298 | return idefloppy_issue_pc(drive, pc); |
299 | out_end: | 299 | out_end: |
300 | drive->failed_pc = NULL; | 300 | drive->failed_pc = NULL; |
301 | if (blk_fs_request(rq) == 0 && rq->errors == 0) | ||
302 | rq->errors = -EIO; | ||
301 | ide_end_request(drive, 0, 0); | 303 | ide_end_request(drive, 0, 0); |
302 | return ide_stopped; | 304 | return ide_stopped; |
303 | } | 305 | } |