diff options
-rw-r--r-- | usr/src/uts/i86pc/io/vmm/io/ppt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/uts/i86pc/io/vmm/io/ppt.c b/usr/src/uts/i86pc/io/vmm/io/ppt.c index 89e9f35c10..0c5815278e 100644 --- a/usr/src/uts/i86pc/io/vmm/io/ppt.c +++ b/usr/src/uts/i86pc/io/vmm/io/ppt.c @@ -406,7 +406,7 @@ ppt_bar_crawl(struct pptdev *ppt) } VERIFY3S(rlen, >, 0); - rcount = (rlen * sizeof (int)) / sizeof (pci_regspec_t); + rcount = rlen / sizeof (pci_regspec_t); for (i = 0; i < rcount; i++) { pci_regspec_t *reg = ®s[i]; struct pptbar *pbar; |