Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106940
b: refs/heads/master
c: 9b79022
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed Jul 29, 2008
1 parent eec8dc3 commit d12fee9
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 34ee55014283a60efa3534c06e010579ffdd3756
refs/heads/master: 9b79022ca909b66e2cd0cfd9248f832fc165f77f
9 changes: 6 additions & 3 deletions trunk/arch/x86/mm/gup.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,14 +223,17 @@ int get_user_pages_fast(unsigned long start, int nr_pages, int write,
struct page **pages)
{
struct mm_struct *mm = current->mm;
unsigned long end = start + (nr_pages << PAGE_SHIFT);
unsigned long addr = start;
unsigned long addr, len, end;
unsigned long next;
pgd_t *pgdp;
int nr = 0;

start &= PAGE_MASK;
addr = start;
len = (unsigned long) nr_pages << PAGE_SHIFT;
end = start + len;
if (unlikely(!access_ok(write ? VERIFY_WRITE : VERIFY_READ,
start, nr_pages*PAGE_SIZE)))
start, len)))
goto slow_irqon;

/*
Expand Down

0 comments on commit d12fee9

Please sign in to comment.