summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles.Rose@dell.com <Charles.Rose@dell.com>2016-09-26 15:00:19 +0000
committerMartin Mares <mj@ucw.cz>2016-09-26 20:27:13 +0200
commit1efd2d4d5056e08d9ed7e42ab9b47d367422a653 (patch)
tree40706826567f4885315fe4f7363076c50e2e505a
parent2f8b8f9fcfcdb5d5692c6da887fc7f9c0cac847c (diff)
downloadpciutils-1efd2d4d5056e08d9ed7e42ab9b47d367422a653.tar.gz
setpci: fix length of SUBSYSTEM_VENDOR_ID
SUBSYSTEM_VENDOR_ID should be 2 bytes, not 4. Thanks to Christopher Arzola for catching this. Signed-off-by: Charles Rose <charles_rose@dell.com>
-rw-r--r--setpci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/setpci.c b/setpci.c
index 873ebd7..82e02a5 100644
--- a/setpci.c
+++ b/setpci.c
@@ -222,7 +222,7 @@ static const struct reg_name pci_reg_names[] = {
{ 0, 0x20, 4, "BASE_ADDRESS_4" },
{ 0, 0x24, 4, "BASE_ADDRESS_5" },
{ 0, 0x28, 4, "CARDBUS_CIS" },
- { 0, 0x2c, 4, "SUBSYSTEM_VENDOR_ID" },
+ { 0, 0x2c, 2, "SUBSYSTEM_VENDOR_ID" },
{ 0, 0x2e, 2, "SUBSYSTEM_ID" },
{ 0, 0x30, 4, "ROM_ADDRESS" },
{ 0, 0x3c, 1, "INTERRUPT_LINE" },