Kunwu Chan 228d190962 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 <chentao@kylinos.cn>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231126093719.1440305-1-chentao@kylinos.cn
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 75fc599bcdcb1de093c9ced2e3cccc832f3787f3)
[fixed conflicts due to missing commit 8b4e6deaff7822c76c94336c40f8d1f244c6f6ed
("powerpc/perf: Pass struct imc_events as a parameter to imc_parse_event()")]
Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
2024-02-02 11:33:38 +00:00
..
2024-02-02 11:33:37 +00:00
2023-09-23 10:46:53 +02:00
2023-11-20 10:27:34 +01:00
2023-08-08 19:48:23 +02:00