Author: np Date: Mon Nov 17 07:38:23 2014 New Revision: 274617 URL: https://svnweb.freebsd.org/changeset/base/274617
Log: MFC r273360: One of MAP_ANON, MAP_PRIVATE, MAP_SHARED, or MAP_STACK must be specified. Modified: stable/8/tools/tools/cxgbetool/cxgbetool.c Directory Properties: stable/8/tools/tools/cxgbetool/ (props changed) Modified: stable/8/tools/tools/cxgbetool/cxgbetool.c ============================================================================== --- stable/8/tools/tools/cxgbetool/cxgbetool.c Mon Nov 17 07:37:56 2014 (r274616) +++ stable/8/tools/tools/cxgbetool/cxgbetool.c Mon Nov 17 07:38:23 2014 (r274617) @@ -1459,7 +1459,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); _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"