summaryrefslogtreecommitdiff
path: root/fs/exec.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2002-12-05 05:56:12 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2002-12-05 05:56:12 -0800
commitdf9ea0d9f8fb63d8fe14ceafaff7278118cb35d7 (patch)
treed7ec70a3085f0c9ce79cd80790a236622da79260 /fs/exec.c
parentd5acc36cee314d0aa3d882f84f04ee23f40e3d13 (diff)
[PATCH] setup_arg_pages. ARCH_STACK_GROWSUP
From: Marcus Alanen <maalanen@ra.abo.fi> As far as I can see, setup_arg_pages code is hosed for the ARCH_STACK_GROWSUP case, completely wrong types... Does any arch even use this?
Diffstat (limited to 'fs/exec.c')
-rw-r--r--fs/exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/exec.c b/fs/exec.c
index 28ff9cbfe0f9..4c0937c43144 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -358,11 +358,11 @@ int setup_arg_pages(struct linux_binprm *bprm)
memmove(to, to + offset, PAGE_SIZE - offset);
from = kmap(bprm->page[j]);
memcpy(to + PAGE_SIZE - offset, from, offset);
- kunmap(bprm[j - 1]);
+ kunmap(bprm->page[j - 1]);
to = from;
}
memmove(to, to + offset, PAGE_SIZE - offset);
- kunmap(bprm[j - 1]);
+ kunmap(bprm->page[j - 1]);
/* Adjust bprm->p to point to the end of the strings. */
bprm->p = PAGE_SIZE * i - offset;