aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorAleksandr Mishin <amishin@t-argos.ru>2024-06-18 17:43:44 +0300
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2024-06-24 13:24:59 +0200
commit7aa9b96e9a73e4ec1771492d0527bd5fc5ef9164 (patch)
tree34bed1b2cfa9b44d10b9b6948731eef6c49110b7 /scripts/generate_rust_analyzer.py
parentgpio: pca953x: fix pca953x_irq_bus_sync_unlock race (diff)
downloadlinux-rng-7aa9b96e9a73e4ec1771492d0527bd5fc5ef9164.tar.xz
linux-rng-7aa9b96e9a73e4ec1771492d0527bd5fc5ef9164.zip
gpio: davinci: Validate the obtained number of IRQs
Value of pdata->gpio_unbanked is taken from Device Tree. In case of broken DT due to any error this value can be any. Without this value validation there can be out of chips->irqs array boundaries access in davinci_gpio_probe(). Validate the obtained nirq value so that it won't exceed the maximum number of IRQs per bank. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: eb3744a2dd01 ("gpio: davinci: Do not assume continuous IRQ numbering") Signed-off-by: Aleksandr Mishin <amishin@t-argos.ru> Link: https://lore.kernel.org/r/20240618144344.16943-1-amishin@t-argos.ru Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions