Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jan 2017 14:33:53 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r312989 - stable/11/sys/amd64/vmm
Message-ID:  <201701301433.v0UEXrij006547@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701301433.v0UEXrij006547>