mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
[ 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>