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,7 +2023,8 @@ do_execve32(char * filename, u32 * argv, u32 * envp, struct pt_regs * regs)
security_bprm_free(&bprm);
out_mm:
mmdrop(bprm.mm);
if (bprm.mm)
mmdrop(bprm.mm);
out_file:
if (bprm.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