Commit c92c1e8d authored by David S. Miller's avatar David S. Miller

[SPARC64]: Fix 32-bit execve out_mm error path.

Do not pass a NULL mm to mmdrop().
parent b2a910c7
...@@ -2023,6 +2023,7 @@ do_execve32(char * filename, u32 * argv, u32 * envp, struct pt_regs * regs) ...@@ -2023,6 +2023,7 @@ do_execve32(char * filename, u32 * argv, u32 * envp, struct pt_regs * regs)
security_bprm_free(&bprm); security_bprm_free(&bprm);
out_mm: out_mm:
if (bprm.mm)
mmdrop(bprm.mm); mmdrop(bprm.mm);
out_file: out_file:
......
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