svn commit: r312990 - stable/10/sys/amd64/vmm
Andriy Gapon
avg at FreeBSD.org
Mon Jan 30 14:34:05 UTC 2017
Author: avg
Date: Mon Jan 30 14:34:04 2017
New Revision: 312990
URL: https://svnweb.freebsd.org/changeset/base/312990
Log:
MFC r312531: vmm_dev: work around a bogus error with gcc 6.3.0
Modified:
stable/10/sys/amd64/vmm/vmm_dev.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/amd64/vmm/vmm_dev.c
==============================================================================
--- stable/10/sys/amd64/vmm/vmm_dev.c Mon Jan 30 14:33:53 2017 (r312989)
+++ stable/10/sys/amd64/vmm/vmm_dev.c Mon Jan 30 14:34:04 2017 (r312990)
@@ -258,7 +258,7 @@ alloc_memseg(struct vmmdev_softc *sc, st
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;
}
More information about the svn-src-stable
mailing list