summaryrefslogtreecommitdiff
path: root/tools/lib/python/feat
diff options
context:
space:
mode:
authorGou Hao <gouhao@uniontech.com>2026-07-27 18:42:15 +0800
committerMadhavan Srinivasan <maddy@linux.ibm.com>2026-08-03 13:56:00 +0530
commit5aabc192702defb8950e7c81b05c3f4ca8ee43ec (patch)
tree438e370eae5b177f918a55dc2caa178bfb076eca /tools/lib/python/feat
parent37d401c9c4b89c3c193726e177493ef06c657f40 (diff)
powerpc/smp: add NULL guard for cause_ipi in smp_muxed_ipi_message_pass
smp_muxed_ipi_message_pass() calls smp_ops->cause_ipi() without checking whether it has been set. On platforms using muxed IPI (e.g. powernv/pseries), smp_ops->cause_ipi is initialized to NULL in the static smp_ops and only assigned during the platform smp_probe() handler. If the IPI subsystem fails to initialize -- for example when xive_init_ipis() fails and xive_smp_probe() returns an error -- the probe handler returns early and cause_ipi is never set. Any subsequent IPI send (e.g. arch_smp_send_reschedule()) would dereference the NULL pointer. Add a NULL check to avoid the crash in that situation. Fixes: 23d72bfd8f9f ("powerpc: Consolidate ipi message mux and demux") Signed-off-by: Gou Hao <gouhao@uniontech.com> Reviewed-by: jiazhenyuan <jiazhenyuan@uniontech.com> Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com> Link: https://patch.msgid.link/20260727104215.184786-6-gouhao@uniontech.com
Diffstat (limited to 'tools/lib/python/feat')
0 files changed, 0 insertions, 0 deletions