mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
ide: fix ide_kill_rq() for special ide-{floppy,tape} driver requests
Such requests should be failed with -EIO (like all other requests in this function) instead of being completed successfully. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d7e2f36d9a
commit
789547508f
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ void ide_kill_rq(ide_drive_t *drive, struct request *rq)
|
|||
|
||||
if ((media == ide_floppy || media == ide_tape) && drv_req) {
|
||||
rq->errors = 0;
|
||||
ide_complete_rq(drive, 0, blk_rq_bytes(rq));
|
||||
ide_complete_rq(drive, -EIO, blk_rq_bytes(rq));
|
||||
} else {
|
||||
if (media == ide_tape)
|
||||
rq->errors = IDE_DRV_ERROR_GENERAL;
|
||||
|
|
Loading…
Reference in a new issue