Skip to content

Commit 3e9c395

Browse files
john-thogregkh
authored andcommitted
PCI: mt7621: Add sentinel to quirks table
[ Upstream commit 1909893 ] Current driver is missing a sentinel in the struct soc_device_attribute array, which causes an oops when assessed by the soc_device_match(mt7621_pcie_quirks_match) call. This was only exposed once the CONFIG_SOC_MT7621 mt7621 soc_dev_attr was fixed to register the SOC as a device, in: commit 7c18b64 ("mips: ralink: mt7621: do not use kzalloc too early") Fix it by adding the required sentinel. Link: https://lore.kernel.org/lkml/[email protected] Link: https://lore.kernel.org/r/[email protected] Fixes: b483b4e ("staging: mt7621-pci: add quirks for 'E2' revision using 'soc_device_attribute'") Signed-off-by: John Thomson <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Acked-by: Sergio Paracuellos <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent bcc65c2 commit 3e9c395

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/staging/mt7621-pci/pci-mt7621.c

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

513513
static const struct soc_device_attribute mt7621_pcie_quirks_match[] = {
514-
{ .soc_id = "mt7621", .revision = "E2" }
514+
{ .soc_id = "mt7621", .revision = "E2" },
515+
{ /* sentinel */ }
515516
};
516517

517518
static int mt7621_pcie_probe(struct platform_device *pdev)

0 commit comments

Comments
 (0)