missing NULL pointer check in pte_alloc_one.
Hi Andrew,
stupid cut-copy-paste error. I fixed the problem for alpha and sparc64 but I broke s390. pte_alloc_one shouldn't allocate two pages, return one and forget the other without freeing it...
blue skies,
Martin.
include/asm-s390/pgalloc.h +1 -1
@@ -141,7 +141,7 @@ {pte_t *pte =pte_alloc_one_kernel (mm, vmaddr);if (pte) -return virt_to_page (pte_alloc_one_kernel (mm, vmaddr)); +return virt_to_page (pte);return 0 ; }