Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa2a455b authored by Nick Piggin's avatar Nick Piggin Committed by Linus Torvalds
Browse files

[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: default avatarNick Piggin <npiggin@suse.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 624f54be
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -988,7 +988,7 @@ int get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
				return i ? : -EFAULT;
				return i ? : -EFAULT;
			}
			}
			if (pages) {
			if (pages) {
				struct page *page = vm_normal_page(vma, start, *pte);
				struct page *page = vm_normal_page(gate_vma, start, *pte);
				pages[i] = page;
				pages[i] = page;
				if (page)
				if (page)
					get_page(page);
					get_page(page);