]> git.ipfire.org Git - thirdparty/pciutils.git/blobdiff - ls-ecaps.c
cxl: Collect all DVSEC Device fields
[thirdparty/pciutils.git] / ls-ecaps.c
index 196a7be92b1a20e2ee7f013038c0143851f3847f..b080a19418c64d79392d34291d6a325b025589ac 100644 (file)
@@ -701,7 +701,7 @@ cap_dvsec_cxl(struct device *d, int id, int where)
   if (id != 0)
     return;
 
-  if (!config_fetch(d, where + PCI_CXL_CAP, 12))
+  if (!config_fetch(d, where + PCI_CXL_CAP, PCI_CXL_DEV_LEN - PCI_CXL_CAP))
     return;
 
   w = get_conf_word(d, where + PCI_CXL_CAP);