Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 28954
b: refs/heads/master
c: 9216dfa
h: refs/heads/master
v: v3
  • Loading branch information
Christoph Lameter authored and Linus Torvalds committed Jun 23, 2006
1 parent 9ffe17f commit c97a902
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1b2db9fb7adc4d67d9ce7d16ce79c41ee84730fe
refs/heads/master: 9216dfad4fc97ab639ef0885efc713f3d7a20d5b
2 changes: 1 addition & 1 deletion trunk/include/linux/syscalls.h
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ asmlinkage long sys_move_pages(pid_t pid, unsigned long nr_pages,
int __user *status,
int flags);
asmlinkage long compat_sys_move_pages(pid_t pid, unsigned long nr_page,
void __user *pages,
__u32 __user *pages,
const int __user *nodes,
int __user *status,
int flags);
Expand Down
4 changes: 2 additions & 2 deletions trunk/kernel/compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ asmlinkage long compat_sys_adjtimex(struct compat_timex __user *utp)

#ifdef CONFIG_NUMA
asmlinkage long compat_sys_move_pages(pid_t pid, unsigned long nr_pages,
void __user *pages32,
compat_uptr_t __user *pages32,
const int __user *nodes,
int __user *status,
int flags)
Expand All @@ -950,7 +950,7 @@ asmlinkage long compat_sys_move_pages(pid_t pid, unsigned long nr_pages,
for (i = 0; i < nr_pages; i++) {
compat_uptr_t p;

if (get_user(p, (compat_uptr_t *)(pages32 + i)) ||
if (get_user(p, pages32 + i) ||
put_user(compat_ptr(p), pages + i))
return -EFAULT;
}
Expand Down

0 comments on commit c97a902

Please sign in to comment.