[Linux-ia64] ia32 emulation layer bug fix

From: Arun Sharma <arun.sharma_at_intel.com>
Date: 2002-12-13 04:13:55
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
Received on Thu Dec 12 09:14:03 2002

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:11 EST