diff options
author | avg <avg@FreeBSD.org> | 2017-01-30 14:33:53 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2017-01-30 14:33:53 +0000 |
commit | 19bd84965ac3c424c02f4b2c38f6358756cbce67 (patch) | |
tree | 3bdf767931830edc7e06b2997c8d9c04d22f680b | |
parent | dda74e2e758e0ce7028f2a4ba4cb25d7c8b2612c (diff) | |
download | FreeBSD-src-19bd84965ac3c424c02f4b2c38f6358756cbce67.zip FreeBSD-src-19bd84965ac3c424c02f4b2c38f6358756cbce67.tar.gz |
MFC r312531: vmm_dev: work around a bogus error with gcc 6.3.0
-rw-r--r-- | sys/amd64/vmm/vmm_dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/vmm/vmm_dev.c b/sys/amd64/vmm/vmm_dev.c index 5cb4150..53a8bdc 100644 --- a/sys/amd64/vmm/vmm_dev.c +++ b/sys/amd64/vmm/vmm_dev.c @@ -258,7 +258,7 @@ alloc_memseg(struct vmmdev_softc *sc, struct vm_memseg *mseg) if (VM_MEMSEG_NAME(mseg)) { sysmem = false; name = malloc(SPECNAMELEN + 1, M_VMMDEV, M_WAITOK); - error = copystr(VM_MEMSEG_NAME(mseg), name, SPECNAMELEN + 1, 0); + error = copystr(mseg->name, name, SPECNAMELEN + 1, 0); if (error) goto done; } |