projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71bfc7a
)
ide-iops: fix odd-length ATAPI PIO transfers
author
Sergei Shtylyov
<
[email protected]
>
Thu, 5 Mar 2009 15:10:56 +0000
(16:10 +0100)
committer
Bartlomiej Zolnierkiewicz
<
[email protected]
>
Thu, 5 Mar 2009 15:10:56 +0000
(16:10 +0100)
Commit
9567b349f7e7dd7e2483db99ee8e4a6fe0caca38
(ide: merge ->atapi_*put_bytes
and ->ata_*put_data methods) introduced a regression WRT the odd-length ATAPI
PIO transfers -- the final word didn't get written (causing command timeouts).
Signed-off-by: Sergei Shtylyov <
[email protected]
>
Signed-off-by: Bartlomiej Zolnierkiewicz <
[email protected]
>
drivers/ide/ide-iops.c
patch
|
blob
|
history
diff --git
a/drivers/ide/ide-iops.c
b/drivers/ide/ide-iops.c
index 753b92ebe0ae5e72416d78cf3fe4baf0a94aabd6..b1892bd95c6fe5e7d270e3b92e2fd825b6847cb3 100644
(file)
--- a/
drivers/ide/ide-iops.c
+++ b/
drivers/ide/ide-iops.c
@@
-315,6
+315,8
@@
void ide_output_data(ide_drive_t *drive, struct request *rq, void *buf,
u8 io_32bit = drive->io_32bit;
u8 mmio = (hwif->host_flags & IDE_HFLAG_MMIO) ? 1 : 0;
+ len++;
+
if (io_32bit) {
unsigned long uninitialized_var(flags);