X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lspci.c;h=071cc117bc682c11917e57d6392a987c6a50d528;hb=0ce6ff4aafb36a7923511a8da6bbbebb642e3109;hp=9452cd31a2b0a830f876fd11e13239fd625f9106;hpb=e5d1d2dbb64cafd33f9b012b7959b61319dcd250;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)