From ee593a2fc6d08eee8055b81b20ee97343122fbf5 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 7cd7cbf..b58cb47 100644 --- a/pigpio.c +++ b/pigpio.c @@ -7262,7 +7262,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); }