| commit | 5a669f3511d273c8c1ab1c1d268fbcdf53fc7a05 | [log] [tgz] |
|---|---|---|
| author | Kunwu Chan <[email protected]> | Sun Nov 26 17:37:19 2023 +0800 |
| committer | Greg Kroah-Hartman <[email protected]> | Thu Jan 25 14:37:40 2024 -0800 |
| tree | b34c2945f41a283753e6dce041a99afc34b63e72 | |
| parent | a67a04ad05acb56640798625e73fa54d6d41cce1 [diff] |
powerpc/imc-pmu: Add a null pointer check in update_events_in_group()
[ Upstream commit 0a233867a39078ebb0f575e2948593bbff5826b3 ]
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]
Signed-off-by: Sasha Levin <[email protected]>