From: Bartlomiej Zolnierkiewicz Date: Tue, 23 Jun 2009 11:26:06 +0000 (+0000) Subject: ide: fix ide_kill_rq() for special ide-{floppy,tape} driver requests X-Git-Tag: v2.6.31~7^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=789547508f22e482825f52f813b59680408ec2c7;p=profile%2Fcommon%2Fkernel-common.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c index 93b7886..95db5f0 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) 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;