]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] IDE PIO mode Fix
authorOsamu Tomita <tomita@cinet.co.jp>
Sat, 4 May 2002 04:56:49 +0000 (21:56 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sat, 4 May 2002 04:56:49 +0000 (21:56 -0700)
I found this bug in 2.5.10 first. And caused ext2 FS corruption.
We are porting Linux to PC-9801 architecture (made by NEC Japan).
It has PIO ONLY IDE I/F. So please check PIO mode too.

It was introduced in 2.5.9 and still exists in 2.5.13, and caused
superblock corruption for Andries.  This fixes it.

drivers/ide/ide-taskfile.c

index 12cb94940ce05d773ed1040b2eec5e8af10305bf..3fd9f3c8d02954a910fbd1b0847fd5807d6054ac 100644 (file)
@@ -202,7 +202,7 @@ void ata_write(ide_drive_t *drive, void *buffer, unsigned int wcount)
                        ata_write_slow(drive, buffer, wcount);
                else
 #endif
-                       ata_write_16(drive, buffer, wcount<<1);
+                       ata_write_16(drive, buffer, wcount);
        }
 }