Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Nov 2014 07:37:42 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r274615 - stable/10/tools/tools/cxgbetool
Message-ID:  <201411170737.sAH7bga7097200@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Mon Nov 17 07:37:41 2014
New Revision: 274615
URL: https://svnweb.freebsd.org/changeset/base/274615

Log:
  MFC r273360:
  
  One of MAP_ANON, MAP_PRIVATE, MAP_SHARED, or MAP_STACK must be specified.

Modified:
  stable/10/tools/tools/cxgbetool/cxgbetool.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/tools/tools/cxgbetool/cxgbetool.c
==============================================================================
--- stable/10/tools/tools/cxgbetool/cxgbetool.c	Mon Nov 17 07:20:53 2014	(r274614)
+++ stable/10/tools/tools/cxgbetool/cxgbetool.c	Mon Nov 17 07:37:41 2014	(r274615)
@@ -1462,7 +1462,7 @@ loadfw(int argc, const char *argv[])
 	}
 
 	data.len = st.st_size;
-	data.data = mmap(0, data.len, PROT_READ, 0, fd, 0);
+	data.data = mmap(0, data.len, PROT_READ, MAP_PRIVATE, fd, 0);
 	if (data.data == MAP_FAILED) {
 		warn("mmap");
 		close(fd);



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