[PATCH master] video: bochs: pci: fix unterminated PCI device table

Ahmad Fatoum ahmad at a3f.at
Sat Apr 10 11:48:07 BST 2021


Like other device id tables across tree, the last element is expected to
be zeroed to act as sentinel. Fix the omission.

Signed-off-by: Ahmad Fatoum <ahmad at a3f.at>
---
 drivers/video/bochs/bochs_pci.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/video/bochs/bochs_pci.c b/drivers/video/bochs/bochs_pci.c
index 28785e1c0667..39c4d1b662ab 100644
--- a/drivers/video/bochs/bochs_pci.c
+++ b/drivers/video/bochs/bochs_pci.c
@@ -27,6 +27,7 @@ static int bochs_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent
 static DEFINE_PCI_DEVICE_TABLE(bochs_pci_tbl) = {
 	/* https://github.com/qemu/qemu/blob/master/docs/specs/standard-vga.txt */
 	{ PCI_DEVICE(0x1234, 0x1111) },
+	{ },
 };
 
 static struct pci_driver bochs_pci_driver = {
-- 
2.30.0




More information about the barebox mailing list