From 5e63b98a307bb3a93516994ddef2a45f966b3389 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Thu, 5 Oct 2023 15:58:40 -0300 Subject: [PATCH] pcireg: Fix steering table device class detection --- pcireg/pcireg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcireg/pcireg.c b/pcireg/pcireg.c index 7d1326b..7ee05bb 100644 --- a/pcireg/pcireg.c +++ b/pcireg/pcireg.c @@ -1215,7 +1215,7 @@ retry_buf: printf("NORTHBRIDGE,"); } else { /* Read device class. */ - dev_class = pci_readw(0x00, 0x00, 0, 0x0a); + dev_class = pci_readw(0x00, entry->dev, 0, 0x0a); /* Determine slot type by location and class. */ if ((entry->dev == 1) && (dev_class == 0x0604)) {