X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lspci.c;h=071cc117bc682c11917e57d6392a987c6a50d528;hb=7d23054d18402b1891343f090d3cd37d7e83c82f;hp=9452cd31a2b0a830f876fd11e13239fd625f9106;hpb=6182921907ef3cc31be3394eb468b24bcd3955a8;p=pciutils.git diff --git a/lspci.c b/lspci.c index 9452cd3..071cc11 100644 --- a/lspci.c +++ b/lspci.c @@ -107,6 +107,7 @@ config_fetch(struct device *d, unsigned int pos, unsigned int len) d->config = xrealloc(d->config, d->config_bufsize); d->present = xrealloc(d->present, d->config_bufsize); memset(d->present + orig_size, 0, d->config_bufsize - orig_size); + pci_setup_cache(d->dev, d->config, d->dev->cache_len); } result = pci_read_block(d->dev, pos, d->config + pos, len); if (result)