diff options
author | jhb <jhb@FreeBSD.org> | 2006-11-15 18:40:00 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2006-11-15 18:40:00 +0000 |
commit | 7613d4fe068dadab100c51d975d916f64aaba375 (patch) | |
tree | 8c1fac73771b63e3e6ef7f439beecd1b34955720 /sys/amd64 | |
parent | 5d56af0b8238588bb535ace5ba965e66bd5f19b0 (diff) | |
download | FreeBSD-src-7613d4fe068dadab100c51d975d916f64aaba375.zip FreeBSD-src-7613d4fe068dadab100c51d975d916f64aaba375.tar.gz |
Fix a typo that broke MSI (MSI-X worked fine) in the later revisions of
the MSI patches.
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/msi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/amd64/msi.c b/sys/amd64/amd64/msi.c index 9bbdf83..7be702a 100644 --- a/sys/amd64/amd64/msi.c +++ b/sys/amd64/amd64/msi.c @@ -315,7 +315,7 @@ msi_alloc(device_t dev, int count, int maxcount, int *irqs, int *newirq, /* We need count - cnt more sources starting at index 'cnt'. */ *newirq = cnt; *newcount = count - cnt; - for (j = 0; j < *newirq; j++) { + for (j = 0; j < *newcount; j++) { /* Create a new MSI source. */ msi = malloc(sizeof(struct msi_intsrc), M_MSI, |