diff options
| author | 2026-09-20 21:06:53 +0800 | |
|---|---|---|
| committer | 2026-10-15 11:50:47 +0200 | |
| commit | 0f214e5bbee59d5952d3c061fd65ed9a1e175981 (patch) | |
| tree | f2de1e1b86cf5177f8647e1c5fa42dddddbe6025 /scripts/Makefile.thinlto | |
| parent | irqchip/mst-intc: Validate the DT interrupt range (diff) | |
irqchip/sifive-plic: Avoid signed shift in interrupt enable mask
__plic_toggle() builds a 32-bit interrupt enable mask using a signed
integer literal. A valid interrupt selecting bit 31 evaluates 1 << 31,
which shifts a signed int into its sign bit.
Use BIT(), matching the equivalent mask construction in plic_irq_eoi().
The resulting mask remains representable in u32 on both RV32 and RV64.
The issue was found by our static-analysis tool.
Fixes: 8237f8bc4f6e ("irqchip: add a SiFive PLIC driver")
Signed-off-by: Pengpeng Hou <hppiscas@163.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Assisted-by: gpt 5
Link: https://patch.msgid.link/caplitmus-rv.v2.plic.87a8fc444de44e109889ba28703c76f3@163.com
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
