From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx> On Tue, 18 Jun 2024 17:43:44 +0300, Aleksandr Mishin wrote: > 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. > > [...] Applied, thanks! [1/1] gpio: davinci: Validate the obtained number of IRQs commit: 7aa9b96e9a73e4ec1771492d0527bd5fc5ef9164 Best regards, -- Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>