From 1efd2d4d5056e08d9ed7e42ab9b47d367422a653 Mon Sep 17 00:00:00 2001 From: "Charles.Rose@dell.com" Date: Mon, 26 Sep 2016 15:00:19 +0000 Subject: [PATCH] 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 --- setpci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" }, -- 2.39.2