diff options
author | 2023-12-08 16:59:37 +0800 | |
---|---|---|
committer | 2023-12-13 22:18:59 +1100 | |
commit | 9a260f2dd827bbc82cc60eb4f4d8c22707d80742 (patch) | |
tree | b22d0581a7742ea36cdbd958912d83b033f7b70f /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | powerpc/mm: Fix null-pointer dereference in pgtable_cache_add (diff) | |
download | wireguard-linux-9a260f2dd827bbc82cc60eb4f4d8c22707d80742.tar.xz wireguard-linux-9a260f2dd827bbc82cc60eb4f4d8c22707d80742.zip |
powerpc/powernv: Add a null pointer check to scom_debug_init_one()
kasprintf() returns a pointer to dynamically allocated memory
which can be NULL upon failure.
Add a null pointer check, and release 'ent' to avoid memory leaks.
Fixes: bfd2f0d49aef ("powerpc/powernv: Get rid of old scom_controller abstraction")
Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231208085937.107210-1-chentao@kylinos.cn
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions