Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 335685
b: refs/heads/master
c: 516bad4
h: refs/heads/master
i:
  335683: a4447e2
v: v3
  • Loading branch information
Heiko Carstens authored and Martin Schwidefsky committed Nov 13, 2012
1 parent 8dd9e40 commit d77b84b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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: d55c4c613fc4d4ad2ba0fc6fa2b57176d420f7e4
refs/heads/master: 516bad44b9f3bdcb0be6be0252b7557bf7a149e4
3 changes: 1 addition & 2 deletions trunk/arch/s390/mm/gup.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,7 @@ int __get_user_pages_fast(unsigned long start, int nr_pages, int write,
addr = start;
len = (unsigned long) nr_pages << PAGE_SHIFT;
end = start + len;
if (unlikely(!access_ok(write ? VERIFY_WRITE : VERIFY_READ,
(void __user *)start, len)))
if ((end < start) || (end > TASK_SIZE))
return 0;

local_irq_save(flags);
Expand Down

0 comments on commit d77b84b

Please sign in to comment.