Fix a typo that broke MSI (MSI-X worked fine) in the later revisions of

the MSI patches.
This commit is contained in:
John Baldwin 2006-11-15 18:40:00 +00:00
parent bc150a42a0
commit 15f266289d
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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,