From: Sergei Shtylyov Date: Thu, 5 Mar 2009 15:10:56 +0000 (+0100) Subject: ide-iops: fix odd-length ATAPI PIO transfers X-Git-Tag: 2.1b_release~13868^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a509538d4fb4f99cdf0a095213d57cc3b2347615;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git ide-iops: fix odd-length ATAPI PIO transfers 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 Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/ide-iops.c b/drivers/ide/ide-iops.c index 753b92e..b1892bd 100644 --- 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);