aboutsummaryrefslogtreecommitdiff
path: root/lib/cpu-notifier-error-inject.c
diff options
context:
space:
mode:
authorBob Liu <[email protected]>2011-07-08 15:39:46 -0700
committerLinus Torvalds <[email protected]>2011-07-08 21:14:44 -0700
commit8f3b1327aa454bc8283e96bca7669c3c88b83f79 (patch)
treec18f10d34bd41c9eeb74a64d5838ee8b6c0ce817 /lib/cpu-notifier-error-inject.c
parentf607e7fc5fb94d92030c4527287e9c149ddf9e65 (diff)
mm/nommu.c: fix remap_pfn_range()
remap_pfn_range() means map physical address pfn<<PAGE_SHIFT to user addr. For nommu arch it's implemented by vma->vm_start = pfn << PAGE_SHIFT which is wrong acroding the original meaning of this function. And some driver developer using remap_pfn_range() with correct parameter will get unexpected result because vm_start is changed. It should be implementd like addr = pfn << PAGE_SHIFT but which is meanless on nommu arch, this patch just make it simply return. Parameter name and setting of vma->vm_flags also be fixed. Signed-off-by: Bob Liu <[email protected]> Cc: Geert Uytterhoeven <[email protected]> Cc: David Howells <[email protected]> Acked-by: Greg Ungerer <[email protected]> Cc: Mike Frysinger <[email protected]> Cc: Bob Liu <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions