Skip to contentSkip to conversation

pata-qdi: fix le32 in data_xfer

PATCH New Peter Korsgaard 1 participant 1 message Oct 9, 2006 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pata-qdi: fix le32 in data_xfer

Hi,

The following tiny patch fixes a typo in qdi_data_xfer (le32 instead of le16).

drivers/ata/pata_qdi.c +1 -1
diff -urpN linux-2.6.19-rc1.orig/drivers/ata/pata_qdi.c linux-2.6.19-rc1/drivers/ata/pata_qdi.c
@@ -141,7 +141,7 @@ static void qdi_data_xfer(struct ata_dev
 				memcpy(&pad, buf + buflen - slop, slop);
 				outl(le32_to_cpu(pad), ap->ioaddr.data_addr);
 			} else {
-				pad = cpu_to_le16(inl(ap->ioaddr.data_addr));
+				pad = cpu_to_le32(inl(ap->ioaddr.data_addr));
 				memcpy(buf + buflen - slop, &pad, slop);
 			}
 		}
Signature · 1 line
Bye, Peter Korsgaard