Skip to content

Commit 8ecdba3

Browse files
committed
Merge branch 'remotes/lorenzo/pci/mt7621'
- Add sentinel to mt7621_pcie_quirks_match[] to prevent oops when parsing the table (John Thomson) * remotes/lorenzo/pci/mt7621: PCI: mt7621: Add sentinel to quirks table
2 parents c00a109 + 1909893 commit 8ecdba3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/pci/controller/pcie-mt7621.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,8 @@ static int mt7621_pcie_register_host(struct pci_host_bridge *host)
466466
}
467467

468468
static const struct soc_device_attribute mt7621_pcie_quirks_match[] = {
469-
{ .soc_id = "mt7621", .revision = "E2" }
469+
{ .soc_id = "mt7621", .revision = "E2" },
470+
{ /* sentinel */ }
470471
};
471472

472473
static int mt7621_pcie_probe(struct platform_device *pdev)

0 commit comments

Comments
 (0)