[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1275043958-26495-1-git-send-email-cesarb@cesarb.net>
Date: Fri, 28 May 2010 07:52:38 -0300
From: Cesar Eduardo Barros <cesarb@...arb.net>
To: Jeff Dike <jdike@...toit.com>
Cc: linux-kernel@...r.kernel.org,
Cesar Eduardo Barros <cesarb@...arb.net>
Subject: [PATCH] arch/um: fix kunmap_atomic call in skas/uaccess.c
kunmap_atomic() takes a pointer to within the page, not the struct page.
Signed-off-by: Cesar Eduardo Barros <cesarb@...arb.net>
---
arch/um/kernel/skas/uaccess.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/um/kernel/skas/uaccess.c b/arch/um/kernel/skas/uaccess.c
index e22c969..6966342 100644
--- a/arch/um/kernel/skas/uaccess.c
+++ b/arch/um/kernel/skas/uaccess.c
@@ -81,7 +81,7 @@ static int do_op_one_page(unsigned long addr, int len, int is_write,
current->thread.fault_catcher = NULL;
- kunmap_atomic(page, KM_UML_USERCOPY);
+ kunmap_atomic((void *)addr, KM_UML_USERCOPY);
return n;
}
--
1.6.6.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists