summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms
diff options
context:
space:
mode:
authorKunwu Chan <chentao@kylinos.cn>2023-12-04 10:32:23 +0800
committerMichael Ellerman <mpe@ellerman.id.au>2023-12-13 22:13:41 +1100
commitf46c8a75263f97bda13c739ba1c90aced0d3b071 (patch)
tree141cd712c2036c8907a149881f8c81c36e4bbc73 /arch/powerpc/platforms
parentb20f98e8b3deb50247603f0242ee2d1e38726635 (diff)
downloadlinux-stable-f46c8a75263f97bda13c739ba1c90aced0d3b071.tar.gz
linux-stable-f46c8a75263f97bda13c739ba1c90aced0d3b071.tar.bz2
linux-stable-f46c8a75263f97bda13c739ba1c90aced0d3b071.zip
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')
0 files changed, 0 insertions, 0 deletions