svn commit: r312989 - stable/11/sys/amd64/vmm
Andriy Gapon
avg at FreeBSD.org
Mon Jan 30 14:33:54 UTC 2017
Author: avg
Date: Mon Jan 30 14:33:53 2017
New Revision: 312989
URL: https://svnweb.freebsd.org/changeset/base/312989
Log:
MFC r312531: vmm_dev: work around a bogus error with gcc 6.3.0
Modified:
stable/11/sys/amd64/vmm/vmm_dev.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/amd64/vmm/vmm_dev.c
==============================================================================
--- stable/11/sys/amd64/vmm/vmm_dev.c Mon Jan 30 12:57:22 2017 (r312988)
+++ stable/11/sys/amd64/vmm/vmm_dev.c Mon Jan 30 14:33:53 2017 (r312989)
@@ -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