From 6fc6129b9e7a9dea808d5f48ecc2e4974f386bdb Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 31 May 2020 21:49:04 +0000 Subject: tpax_driver_ctx_alloc(): pass missing flag MAP_PRIVATE to mmap(). --- src/driver/tpax_driver_ctx.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.3