Hello, By the way, this would be v2, technically, but not to worry. > In kirin_pcie_parse_port() pcie->num_slots is compared to > pcie->gpio_id_reset size (MAX_PCI_SLOTS). Need to fix > condition to pcie->num_slots + 1 >= MAX_PCI_SLOTS and move > pcie->num_slots increment lower to avoid out-of-bounds > array access. > > Found by Linux Verification Center (linuxtesting.org) with SVACE. Applied to controller/kirin, thank you! [1/1] PCI: kirin: Fix buffer overflow in kirin_pcie_parse_port() https://git.kernel.org/pci/pci/c/c500a86693a1 Krzysztof