From e9a0dd8ead58eb5e15c62e64d36a788c27835a9c Mon Sep 17 00:00:00 2001 From: hazuki Date: Sun, 26 Apr 2020 17:42:35 +0900 Subject: [PATCH] Remove excessive PROT_EXEC --- pigpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pigpio.c b/pigpio.c index 1bdae12..5b11476 100644 --- a/pigpio.c +++ b/pigpio.c @@ -7318,7 +7318,7 @@ static int initGrabLockFile(void) static uint32_t * initMapMem(int fd, uint32_t addr, uint32_t len) { return (uint32_t *) mmap(0, len, - PROT_READ|PROT_WRITE|PROT_EXEC, + PROT_READ|PROT_WRITE, MAP_SHARED|MAP_LOCKED, fd, addr); }