Commit bafd199d authored by Arun Sharma's avatar Arun Sharma Committed by David Mosberger

[PATCH] ia64: ia32 emulation layer bug fix

sys32_mprotect code isn't dropping ia32_mmap_sem before returning. This
affects both 2.4 and 2.5.
parent 931e255b
...@@ -618,7 +618,8 @@ sys32_mprotect (unsigned int start, unsigned int len, int prot) ...@@ -618,7 +618,8 @@ sys32_mprotect (unsigned int start, unsigned int len, int prot)
/* end address is 4KB aligned but not page aligned. */ /* end address is 4KB aligned but not page aligned. */
retval = mprotect_subpage(PAGE_START(end), prot); retval = mprotect_subpage(PAGE_START(end), prot);
if (retval < 0) if (retval < 0)
return retval; goto out;
end = PAGE_START(end); end = PAGE_START(end);
} }
retval = sys_mprotect(start, end - start, prot); retval = sys_mprotect(start, end - start, prot);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment