In the disable_slot() routine, the variable "i" was
being used without ever being initialized. From examining the rest of the routine, it looks like this is a typo, and it really should have been "1" instead of "i". Submitted by: mpp
This commit is contained in:
parent
a042d32c0b
commit
8c1801dce9
|
@ -298,7 +298,7 @@ disable_slot(struct slot *sp)
|
||||||
INTRUNMASK(*devp->drv->imask,(1<<sp->irq));
|
INTRUNMASK(*devp->drv->imask,(1<<sp->irq));
|
||||||
/* Remove from the PCIC controller imask */
|
/* Remove from the PCIC controller imask */
|
||||||
if (sp->ctrl->imask)
|
if (sp->ctrl->imask)
|
||||||
INTRUNMASK(*(sp->ctrl->imask), (i<<sp->irq));
|
INTRUNMASK(*(sp->ctrl->imask), (1<<sp->irq));
|
||||||
sp->irq = 0;
|
sp->irq = 0;
|
||||||
}
|
}
|
||||||
splx(s);
|
splx(s);
|
||||||
|
|
Loading…
Reference in New Issue