[PATCH] powerpc/book3s/64: check for NULL pointer in pgd_alloc()

Michael Ellerman patch-notifications at ellerman.id.au
Fri May 10 01:34:57 AEST 2019


On Mon, 2019-05-06 at 00:20:43 UTC, Rick Lindsley wrote:
> When the memset code was added to pgd_alloc(), it failed to consider that kmem_cache_alloc() can return NULL.  It's uncommon, but not impossible under heavy memory contention.
> 
> Signed-off-by: Rick Lindsley <ricklind at vnet.linux.ibm.com>
> Fixes: cf266dbcd2a7 ("Zero PGD pages on allocation")

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/f39356261c265a0689d7ee568132d516

cheers


More information about the Linuxppc-dev mailing list