]> git.neil.brown.name Git - history.git/commit
[PATCH] Fix oops in alloc_zeroed_user_highpage() when page is NULL
authorMichael Ellerman <michael@ellerman.id.au>
Tue, 8 Feb 2005 23:35:29 +0000 (15:35 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 8 Feb 2005 23:35:29 +0000 (15:35 -0800)
commit76dd2a8f9e46dcc70d0c1ca3728bce9bbac86c64
tree7fafb3b1cdd6b0a33f71b52524e071b170af6ce2
parent3d23006057f7aaaf01b53305327d542a72626fe5
[PATCH] Fix oops in alloc_zeroed_user_highpage() when page is NULL

The generic and IA-64 versions of alloc_zeroed_user_highpage() don't
check the return value from alloc_page_vma().  This can lead to an oops
if we're OOM.

This fixes my oops on PPC64, but I haven't got an IA-64 machine/compiler
handy.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-ia64/page.h
include/linux/highmem.h