Messages in this thread Patch in this message | | | Date | Sun, 20 Oct 2002 01:17:14 +0300 (EEST) | From | Marcus Alanen <> | Subject | [patch] setup_arg_pages. ARCH_STACK_GROWSUP ?? |
| |
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?
Marcus
diff -Naurd --exclude-from=/home/maalanen/linux/base/diff_exclude linus-2.5.44/fs/exec.c msa-2.5.44/fs/exec.c --- linus-2.5.44/fs/exec.c Wed Oct 16 16:31:15 2002 +++ msa-2.5.44/fs/exec.c Sat Oct 19 22:03:11 2002 @@ -354,11 +354,11 @@ 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; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |