ide_isa: integrate fix for #2880

This was fixed in 2008 in the ide_pci driver, but has never been merged
in ide_isa. It probably won't matter as machine with IDE on the ISA bus
are unlikely to run Haiku.

Thanks to philcostin for finding the problem using cppcheck.
This commit is contained in:
Adrien Destugues
2015-06-13 21:47:53 +02:00
parent d31c2a427a
commit dfc20f6f05
@@ -120,7 +120,7 @@ write_command_block_regs(void *channel_cookie, ata_task_file *tf,
return B_ERROR;
for (i = 0; i < 7; i++) {
if (((1 << (i-7)) & mask) != 0) {
if (((1 << (i + 7)) & mask) != 0) {
TRACE("write_command_block_regs(): %x->HI(%x)\n",
tf->raw.r[i + 7], i);
channel->isa->write_io_8(ioaddr + 1 + i, tf->raw.r[i + 7]);