diff options
author | Kunwu Chan <[email protected]> | 2023-11-26 17:37:19 +0800 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2023-12-13 22:19:43 +1100 |
commit | 0a233867a39078ebb0f575e2948593bbff5826b3 (patch) | |
tree | d7770ef74b874278837737de33753d9ba506f120 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | e123015c0ba859cf48aa7f89c5016cc6e98e018d (diff) |
powerpc/imc-pmu: Add a null pointer check in update_events_in_group()
kasprintf() returns a pointer to dynamically allocated memory
which can be NULL upon failure.
Fixes: 885dcd709ba9 ("powerpc/perf: Add nest IMC PMU support")
Signed-off-by: Kunwu Chan <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://msgid.link/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions