summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2026-11-03 13:50:40 -0800
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2026-11-05 15:36:25 +0100
commit456c965ca46c59a4a241c755e6565fd883a522f4 (patch)
tree2ca28af3032268b7b7f416947266224ae6d7faa4 /tools/lib/python
parentff209a7294988aac52b2522b1d0d7349da4541ec (diff)
MIPS: SB1250: Validate and update IRQ affinity
sb1250_set_affinity() selects the first online CPU in the requested affinity mask without checking whether such a CPU exists. If the intersection is empty, the resulting CPU index is invalid and must not be passed to cpu_logical_map(). Reject affinity masks containing no online CPU with -EINVAL before accessing the CPU mapping or interrupt mapper registers. Also update the effective affinity mask to reflect the single logical CPU selected as the interrupt target. Fixes: 421d1563c662 ("mips: Validate online cpus in irq_set_affinity() callbacks") Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions