Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jun 2009 17:18:41 +0000 (UTC)
From:      Alan Cox <alc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r193845 - head/sys/kern
Message-ID:  <200906091718.n59HIfOe078461@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: alc
Date: Tue Jun  9 17:18:41 2009
New Revision: 193845
URL: http://svn.freebsd.org/changeset/base/193845

Log:
  Eliminate an instance of VM_PROT_READ_IS_EXEC that I overlooked in r190705.

Modified:
  head/sys/kern/sysv_shm.c

Modified: head/sys/kern/sysv_shm.c
==============================================================================
--- head/sys/kern/sysv_shm.c	Tue Jun  9 17:12:19 2009	(r193844)
+++ head/sys/kern/sysv_shm.c	Tue Jun  9 17:18:41 2009	(r193845)
@@ -391,11 +391,7 @@ kern_shmat(td, shmid, shmaddr, shmflg)
 		goto done2;
 	}
 	size = round_page(shmseg->shm_bsegsz);
-#ifdef VM_PROT_READ_IS_EXEC
-	prot = VM_PROT_READ | VM_PROT_EXECUTE;
-#else
 	prot = VM_PROT_READ;
-#endif
 	if ((shmflg & SHM_RDONLY) == 0)
 		prot |= VM_PROT_WRITE;
 	flags = MAP_ANON | MAP_SHARED;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906091718.n59HIfOe078461>