Commit 8ada88c2 authored by Alex Williamson's avatar Alex Williamson Committed by Linus Torvalds

[PATCH] fix compat_do_execve stack usage

Looks like a couple struct to pointer conversions were missed.
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent de561f95
......@@ -1399,11 +1399,11 @@ int compat_do_execve(char * filename,
if (retval < 0)
goto out_mm;
bprm.argc = compat_count(argv, bprm->p / sizeof(compat_uptr_t));
bprm->argc = compat_count(argv, bprm->p / sizeof(compat_uptr_t));
if ((retval = bprm->argc) < 0)
goto out_mm;
bprm.envc = compat_count(envp, bprm->p / sizeof(compat_uptr_t));
bprm->envc = compat_count(envp, bprm->p / sizeof(compat_uptr_t));
if ((retval = bprm->envc) < 0)
goto out_mm;
......
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