[PATCH] Fix vma argument in get_usr_pages() for gate areas

The system call gate area handling called vm_normal_page() with the
wrong vma (which was always NULL, and caused an oops).

Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Nick Piggin and committed by Linus Torvalds fa2a455b 624f54be

+1 -1
+1 -1
mm/memory.c
··· 988 return i ? : -EFAULT; 989 } 990 if (pages) { 991 - struct page *page = vm_normal_page(vma, start, *pte); 992 pages[i] = page; 993 if (page) 994 get_page(page);
··· 988 return i ? : -EFAULT; 989 } 990 if (pages) { 991 + struct page *page = vm_normal_page(gate_vma, start, *pte); 992 pages[i] = page; 993 if (page) 994 get_page(page);