Fix a typo that broke MSI (MSI-X worked fine) in the later revisions of
the MSI patches.
This commit is contained in:
parent
bc150a42a0
commit
15f266289d
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user