summarylogtreecommitdiffstats
path: root/0003-Remove-shmctl.patch
blob: 6e2700c15f825ccae607f0ca7a9f8096ec050af2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- a/prov/util/src/util_mem_hooks.c
+++ b/prov/util/src/util_mem_hooks.c
@@ -588,11 +588,9 @@
 	const void *start;
 	void *result;
 	size_t len;
-	int ret;
 
 	if (shmaddr && (shmflg & SHM_REMAP)) {
-		ret = shmctl(shmid, IPC_STAT, &ds);
-		len = (ret < 0) ? 0 : ds.shm_segsz;
+		len = 0;
 
 		if (shmflg & SHM_RND) {
 			start = (char *) shmaddr - ((uintptr_t) shmaddr) % SHMLBA;