diff options
author | 2023-11-26 17:57:39 +0800 | |
---|---|---|
committer | 2023-12-13 22:19:07 +1100 | |
commit | e123015c0ba859cf48aa7f89c5016cc6e98e018d (patch) | |
tree | a265e574706b93d2c69838b61b6d1163ad86cb66 /tools/perf/scripts/python/syscall-counts.py | |
parent | powerpc/powernv: Add a null pointer check in opal_event_init() (diff) | |
download | wireguard-linux-e123015c0ba859cf48aa7f89c5016cc6e98e018d.tar.xz wireguard-linux-e123015c0ba859cf48aa7f89c5016cc6e98e018d.zip |
powerpc/powernv: Add a null pointer check in opal_powercap_init()
kasprintf() returns a pointer to dynamically allocated memory
which can be NULL upon failure.
Fixes: b9ef7b4b867f ("powerpc: Convert to using %pOFn instead of device_node.name")
Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231126095739.1501990-1-chentao@kylinos.cn
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions