From df9ea0d9f8fb63d8fe14ceafaff7278118cb35d7 Mon Sep 17 00:00:00 2001
From: Rusty Russell <rusty@rustcorp.com.au>
Date: Thu, 5 Dec 2002 05:56:12 -0800
Subject: [PATCH] [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?
---
 fs/exec.c | 4 ++--
 1 file 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;
-- 
2.30.9