summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2020-05-31 21:49:04 +0000
committermidipix <writeonce@midipix.org>2020-05-31 21:50:34 +0000
commit6fc6129b9e7a9dea808d5f48ecc2e4974f386bdb (patch)
tree9ecc232e85b96b1f4379aedbed2fe58bae218fe7 /src
parent559cff76c70f26d43d461cd4b862f1fb2c195c21 (diff)
downloadtpax-6fc6129b9e7a9dea808d5f48ecc2e4974f386bdb.tar.bz2
tpax-6fc6129b9e7a9dea808d5f48ecc2e4974f386bdb.tar.xz
tpax_driver_ctx_alloc(): pass missing flag MAP_PRIVATE to mmap().
Diffstat (limited to 'src')
-rw-r--r--src/driver/tpax_driver_ctx.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/driver/tpax_driver_ctx.c b/src/driver/tpax_driver_ctx.c
index 4f533cc..7557ace 100644
--- a/src/driver/tpax_driver_ctx.c
+++ b/src/driver/tpax_driver_ctx.c
@@ -284,7 +284,11 @@ static struct tpax_driver_ctx_impl * tpax_driver_ctx_alloc(
if (cctx->drvflags & TPAX_DRIVER_EXEC_MODE_WRITE_COPY) {
ictx->ctx.bufsize = 64 * 1024;
- ictx->ctx.bufaddr = mmap(0,ictx->ctx.bufsize,PROT_READ|PROT_WRITE,MAP_ANONYMOUS,-1,0);
+ ictx->ctx.bufaddr = mmap(
+ 0,ictx->ctx.bufsize,
+ PROT_READ|PROT_WRITE,
+ MAP_PRIVATE|MAP_ANONYMOUS,
+ -1,0);
}
if (ictx->ctx.bufaddr == MAP_FAILED) {