summaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms/powernv
diff options
context:
space:
mode:
authorKunwu Chan <chentao@kylinos.cn>2023-12-04 05:32:23 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2023-12-13 14:13:41 +0300
commitf46c8a75263f97bda13c739ba1c90aced0d3b071 (patch)
tree141cd712c2036c8907a149881f8c81c36e4bbc73 /arch/powerpc/platforms/powernv
parentb20f98e8b3deb50247603f0242ee2d1e38726635 (diff)
downloadlinux-f46c8a75263f97bda13c739ba1c90aced0d3b071.tar.xz
powerpc/mm: Fix null-pointer dereference in pgtable_cache_add
kasprintf() returns a pointer to dynamically allocated memory which can be NULL upon failure. Ensure the allocation was successful by checking the pointer validity. Suggested-by: Christophe Leroy <christophe.leroy@csgroup.eu> Suggested-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Kunwu Chan <chentao@kylinos.cn> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20231204023223.2447523-1-chentao@kylinos.cn
Diffstat (limited to 'arch/powerpc/platforms/powernv')
0 files changed, 0 insertions, 0 deletions