summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2012-09-03 02:32:00 +0000
committeralc <alc@FreeBSD.org>2012-09-03 02:32:00 +0000
commitded352a8c674a822d85b1f89c905340a079ae1c2 (patch)
tree716cf4e18650e14063117909a76876caf714ddcd /sys/dev
parent9a1f51023ae4d585a0497b1e4841dad2000f58ad (diff)
downloadFreeBSD-src-ded352a8c674a822d85b1f89c905340a079ae1c2.zip
FreeBSD-src-ded352a8c674a822d85b1f89c905340a079ae1c2.tar.gz
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
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/gxemul/disk/gxemul_disk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/gxemul/disk/gxemul_disk.c b/sys/dev/gxemul/disk/gxemul_disk.c
index 988ae7d..8cf52e4 100644
--- a/sys/dev/gxemul/disk/gxemul_disk.c
+++ b/sys/dev/gxemul/disk/gxemul_disk.c
@@ -286,7 +286,7 @@ gxemul_disk_write(unsigned diskid, const void *buf, off_t off)
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);
OpenPOWER on IntegriCloud