svn commit: r240065 - head/sys/dev/gxemul/disk

Alan Cox alc at FreeBSD.org
Mon Sep 3 02:32:01 UTC 2012


Author: alc
Date: Mon Sep  3 02:32:00 2012
New Revision: 240065
URL: http://svn.freebsd.org/changeset/base/240065

Log:
  Correct an error in gxemul_disk_write().  It was issuing the command to
  read from rather than write to the emulated disk.
  
  Reviewed by:	jmallett

Modified:
  head/sys/dev/gxemul/disk/gxemul_disk.c

Modified: head/sys/dev/gxemul/disk/gxemul_disk.c
==============================================================================
--- head/sys/dev/gxemul/disk/gxemul_disk.c	Mon Sep  3 02:25:20 2012	(r240064)
+++ head/sys/dev/gxemul/disk/gxemul_disk.c	Mon Sep  3 02:32:00 2012	(r240065)
@@ -286,7 +286,7 @@ gxemul_disk_write(unsigned diskid, const
 	dst = GXEMUL_DISK_DEV_FUNCTION(GXEMUL_DISK_DEV_BLOCK);
 	memcpy((void *)(uintptr_t)dst, buf, GXEMUL_DISK_DEV_BLOCKSIZE);
 
-	GXEMUL_DISK_DEV_WRITE(GXEMUL_DISK_DEV_START, GXEMUL_DISK_DEV_START_READ);
+	GXEMUL_DISK_DEV_WRITE(GXEMUL_DISK_DEV_START, GXEMUL_DISK_DEV_START_WRITE);
 	switch (GXEMUL_DISK_DEV_READ(GXEMUL_DISK_DEV_STATUS)) {
 	case GXEMUL_DISK_DEV_STATUS_FAILURE:
 		return (EIO);


More information about the svn-src-all mailing list