Commit d96c8a62 authored by Kunwu Chan's avatar Kunwu Chan Committed by Guo Mengqi
Browse files

powerpc/powernv: Add a null pointer check in opal_event_init()

stable inclusion
from stable-v4.19.306
commit 8422d179cf46889c15ceff9ede48c5bfa4e7f0b4
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I9Q9IH
CVE: CVE-2023-52686

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=8422d179cf46889c15ceff9ede48c5bfa4e7f0b4



--------------------------------

[ Upstream commit 8649829a1dd25199bbf557b2621cedb4bf9b3050 ]

kasprintf() returns a pointer to dynamically allocated memory
which can be NULL upon failure.

Fixes: 2717a33d ("powerpc/opal-irqchip: Use interrupt names if present")
Signed-off-by: default avatarKunwu Chan <chentao@kylinos.cn>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231127030755.1546750-1-chentao@kylinos.cn


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarGuo Mengqi <guomengqi3@huawei.com>
parent 5bab8a92
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment