summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Rosenfeld <hans.rosenfeld@joyent.com>2018-06-18 15:56:16 +0000
committerHans Rosenfeld <hans.rosenfeld@joyent.com>2018-06-18 18:12:23 +0200
commite95ae2f5523c90888c59197a541b270a64a362c6 (patch)
treeddc48f387c73a2085f46ef88b7c7426068726f58
parentecbbcfd4c7093c7ad0151bcc0db43ef615d66259 (diff)
downloadillumos-joyent-e95ae2f5523c90888c59197a541b270a64a362c6.tar.gz
OS-7031 panic in ppt_bar_crawl()
Reviewed by: John Levon <john.levon@joyent.com> Reviewed by: Patrick Mooney <patrick.mooney@joyent.com> Approved by: Patrick Mooney <patrick.mooney@joyent.com>
-rw-r--r--usr/src/uts/i86pc/io/vmm/io/ppt.c2
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 = &regs[i];
struct pptbar *pbar;