|
From: | Philippe Mathieu-Daudé |
Subject: | Re: [PATCH v2 3/3] hw/intc: Add NULL pointer check on LoongArch ipi device |
Date: | Fri, 12 May 2023 15:24:51 +0200 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 |
On 12/5/23 12:04, Song Gao wrote:
When ipi mailbox is used, cpu_index is decoded from iocsr register. cpu maybe does not exist. This patch adss NULL pointer check on
"adds"
ipi device. Signed-off-by: Song Gao <gaosong@loongson.cn> --- hw/intc/loongarch_ipi.c | 40 +++++++++++++++++++++++++++++----------- hw/intc/trace-events | 1 + 2 files changed, 30 insertions(+), 11 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
[Prev in Thread] | Current Thread | [Next in Thread] |