From: Bjorn Helgaas <bhelgaas@xxxxxxxxxx> On Mon, 30 Oct 2023 13:42:18 +0200, Andy Shevchenko wrote: > Coverity complains that pointer in the pci_dev_for_each_resource() > may be wrong, i.e. mighe be used for the out-of-bounds read. > > There is no actual issue right now, because we have another check > afterwards and the out-of-bounds read is not being performed. In any > case it's better code with this get fixed, hence the proposed change. > > [...] Applied to "resource" for v6.8, thanks! [1/1] PCI: Avoid potential out-of-bounds read in pci_dev_for_each_resource() commit: 3171e46d677a668eed3086da78671f1e4f5b8405 Best regards, -- Bjorn Helgaas <bhelgaas@xxxxxxxxxx>