mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
cxgbetool: Catch up with r185979. One of MAP_ANON, MAP_PRIVATE,
MAP_SHARED, or MAP_STACK must be specified. This fixes the "loadfw" subcommand. MFC after: 1 week
This commit is contained in:
parent
b8333e4546
commit
9302455e9a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=273360
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user