public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [Linux-ia64] ia32 emulation layer bug fix
@ 2002-12-12 17:13 Arun Sharma
  0 siblings, 0 replies; only message in thread
From: Arun Sharma @ 2002-12-12 17:13 UTC (permalink / raw)
  To: linux-ia64

sys32_mprotect code isn't dropping ia32_mmap_sem before returning. This
affects both 2.4 and 2.5.

--- linux/arch/ia64/ia32/sys_ia32.c-	Wed Dec 11 20:30:25 2002
+++ linux/arch/ia64/ia32/sys_ia32.c	Wed Dec 11 20:30:31 2002
@@ -623,7 +623,8 @@
 			/* end address is 4KB aligned but not page aligned. */
 			retval = mprotect_subpage(PAGE_START(end), prot);
 			if (retval < 0)
-				return retval;
+				goto out;
+				  
 			end = PAGE_START(end);
 		}
 		retval = sys_mprotect(start, end - start, prot);


	-Arun



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-12-12 17:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-12 17:13 [Linux-ia64] ia32 emulation layer bug fix Arun Sharma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox