diff options
author | Kunwu Chan <chentao@kylinos.cn> | 2023-12-04 05:32:23 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2023-12-13 14:13:41 +0300 |
commit | f46c8a75263f97bda13c739ba1c90aced0d3b071 (patch) | |
tree | 141cd712c2036c8907a149881f8c81c36e4bbc73 /scripts/gdb/linux/utils.py | |
parent | b20f98e8b3deb50247603f0242ee2d1e38726635 (diff) | |
download | linux-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 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions