projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e803915
)
[IA64] don't double >> PAGE_SHIFT pointer for /dev/kmem access
author
Jes Sorensen
<jes@sgi.com>
Wed, 25 Oct 2006 09:49:53 +0000
(
05:49
-0400)
committer
Tony Luck
<tony.luck@intel.com>
Thu, 26 Oct 2006 21:57:06 +0000
(14:57 -0700)
Don't PAGE_SHIFT pointer before handing it to virt_to_page() in
xlate_dev_kmem_ptr() as it results in a double shift.
Spotted by Bob Montgomery.
Signed-off-by: Jes Sorensen <jes@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
include/asm-ia64/uaccess.h
patch
|
blob
|
blame
|
history
diff --git
a/include/asm-ia64/uaccess.h
b/include/asm-ia64/uaccess.h
index 9adb51211c2270d7500dfb00d8ed3a59264651e6..449c8c0fa2bdc65165ff62248fdb4dbf8cba129e 100644
(file)
--- a/
include/asm-ia64/uaccess.h
+++ b/
include/asm-ia64/uaccess.h
@@
-389,7
+389,7
@@
xlate_dev_kmem_ptr (char * p)
struct page *page;
char * ptr;
- page = virt_to_page((unsigned long)p
>> PAGE_SHIFT
);
+ page = virt_to_page((unsigned long)p);
if (PageUncached(page))
ptr = (char *)__pa(p) + __IA64_UNCACHED_OFFSET;
else