diff options
author | alc <alc@FreeBSD.org> | 2012-09-03 02:32:00 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2012-09-03 02:32:00 +0000 |
commit | ded352a8c674a822d85b1f89c905340a079ae1c2 (patch) | |
tree | 716cf4e18650e14063117909a76876caf714ddcd /sys/dev | |
parent | 9a1f51023ae4d585a0497b1e4841dad2000f58ad (diff) | |
download | FreeBSD-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.c | 2 |
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); |