From: Charles.Rose@dell.com Date: Mon, 26 Sep 2016 15:00:19 +0000 (+0000) Subject: setpci: fix length of SUBSYSTEM_VENDOR_ID X-Git-Tag: v3.5.2~3 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=1efd2d4d5056e08d9ed7e42ab9b47d367422a653;p=pciutils.git 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 --- 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" },