Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4297287b authored by Kunwu Chan's avatar Kunwu Chan Committed by Vegard Nossum
Browse files

powerpc/xics: Check return value of kasprintf in icp_native_map_one_cpu



[ Upstream commit 45b1ba7e5d1f6881050d558baf9bc74a2ae13930 ]

kasprintf() returns a pointer to dynamically allocated memory
which can be NULL upon failure. Ensure the allocation was successful
by checking the pointer validity.

Signed-off-by: default avatarKunwu Chan <chentao@kylinos.cn>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231122030651.3818-1-chentao@kylinos.cn


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
(cherry picked from commit 479a0cffcca7e3672a7db5f9e23b147fb6cfba39)
Signed-off-by: default avatarVegard Nossum <vegard.nossum@oracle.com>
parent e0961317
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment