aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <[email protected]>2022-02-20 11:38:15 +0100
committerDaniel Lezcano <[email protected]>2022-03-07 18:27:22 +0100
commitab8da93dc06d82f464c47ab30e6c75190702f369 (patch)
treea4871eae6e50913aadfe83005daf5b8af4bc856f /drivers/fpga/fpga-mgr.c
parentbceaae3bac0ce27c549bb050336d8d08abc2ee54 (diff)
clocksource/drivers/exynos_mct: Handle DTS with higher number of interrupts
The driver statically defines maximum number of interrupts it can handle, however it does not respect that limit when configuring them. When provided with a DTS with more interrupts than assumed, the driver will overwrite static array mct_irqs leading to silent memory corruption. Validate the interrupts coming from DTS to avoid this. This does not change the fact that such DTS might not boot at all, because it is simply incompatible, however at least some warning will be printed. Fixes: 36ba5d527e95 ("ARM: EXYNOS: add device tree support for MCT controller driver") Signed-off-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Alim Akhtar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Lezcano <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions