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) {