diff options
| author | Kunwu Chan <[email protected]> | 2023-12-04 02:32:23 +0000 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2023-12-13 11:13:41 +0000 |
| commit | f46c8a75263f97bda13c739ba1c90aced0d3b071 (patch) | |
| tree | 141cd712c2036c8907a149881f8c81c36e4bbc73 /scripts/patch-kernel | |
| parent | powerpc/Kconfig: Select FUNCTION_ALIGNMENT_4B (diff) | |
| download | kernel-f46c8a75263f97bda13c739ba1c90aced0d3b071.tar.gz kernel-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 <[email protected]>
Suggested-by: Michael Ellerman <[email protected]>
Signed-off-by: Kunwu Chan <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://msgid.link/[email protected]
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
