Skip to contentSkip to conversation

ia32 emulation layer bug fix

Linux-ia64 Arun Sharma 1 participant 1 message Dec 12, 2002

lore
Share & tools
lore
#0 lore raw

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

arch/ia64/ia32/sys_ia32.c renamed from arch/ia64/ia32/sys_ia32.c- +2 -1
@@ -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