projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7e2f36
)
ide: fix ide_kill_rq() for special ide-{floppy,tape} driver requests
author
Bartlomiej Zolnierkiewicz
<bzolnier@gmail.com>
Tue, 23 Jun 2009 11:26:06 +0000
(11:26 +0000)
committer
David S. Miller
<davem@davemloft.net>
Fri, 26 Jun 2009 06:57:14 +0000
(23:57 -0700)
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>
drivers/ide/ide-io.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/ide/ide-io.c
b/drivers/ide/ide-io.c
index 93b7886a2d6e34873050b28dc00f6328e141b0a8..95db5f03f6a285590b65360485b341a8baec199d 100644
(file)
--- 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;