]> git.ipfire.org Git - thirdparty/pciutils.git/commitdiff
setpci: fix length of SUBSYSTEM_VENDOR_ID
authorCharles.Rose@dell.com <Charles.Rose@dell.com>
Mon, 26 Sep 2016 15:00:19 +0000 (15:00 +0000)
committerMartin Mares <mj@ucw.cz>
Mon, 26 Sep 2016 18:27:13 +0000 (20:27 +0200)
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>
setpci.c

index 873ebd7f4a0632d7746aa0d5e6814e39dbe8c664..82e02a56f4d21ee1534bab16ca8cc689a13c7b95 100644 (file)
--- 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" },