svn commit: r213092 - head/sys/dev/ata/chipsets

Alexander Motin mav at FreeBSD.org
Fri Sep 24 07:14:15 UTC 2010


Author: mav
Date: Fri Sep 24 07:14:14 2010
New Revision: 213092
URL: http://svn.freebsd.org/changeset/base/213092

Log:
  Add missing le32toh(), same as recently done in ata-siliconimage.c.

Modified:
  head/sys/dev/ata/chipsets/ata-ahci.c

Modified: head/sys/dev/ata/chipsets/ata-ahci.c
==============================================================================
--- head/sys/dev/ata/chipsets/ata-ahci.c	Fri Sep 24 04:46:46 2010	(r213091)
+++ head/sys/dev/ata/chipsets/ata-ahci.c	Fri Sep 24 07:14:14 2010	(r213092)
@@ -563,7 +563,7 @@ ata_ahci_end_transaction(struct ata_requ
     /* record how much data we actually moved */
     clp = (struct ata_ahci_cmd_list *)
 	  (ch->dma.work + ATA_AHCI_CL_OFFSET);
-    request->donecount = clp->bytecount;
+    request->donecount = le32toh(clp->bytecount);
 
     /* release SG list etc */
     ch->dma.unload(request);


More information about the svn-src-all mailing list