[PATCH v3] powerpc/mm: Fix null-pointer dereference in pgtable_cache_add

Michael Ellerman patch-notifications at ellerman.id.au
Thu Dec 21 21:38:20 AEDT 2023


On Mon, 04 Dec 2023 10:32:23 +0800, Kunwu Chan wrote:
> kasprintf() returns a pointer to dynamically allocated memory
> which can be NULL upon failure. Ensure the allocation was successful
> by checking the pointer validity.
> 
> 

Applied to powerpc/next.

[1/1] powerpc/mm: Fix null-pointer dereference in pgtable_cache_add
      https://git.kernel.org/powerpc/c/f46c8a75263f97bda13c739ba1c90aced0d3b071

cheers


More information about the Linuxppc-dev mailing list