Fix an off by one in the critical section clearing code. The

code was adjusting twice for the instruction pointer indicating
the *next* instruction to execute.  The aic79xx driver had a similar
bug, but was fixed some time ago.
This commit is contained in:
gibbs 2004-08-13 21:39:14 +00:00
parent 6994ab16ad
commit 2e970a2641

View File

@ -1443,8 +1443,6 @@ ahc_clear_critical_section(struct ahc_softc *ahc)
* so we are really executing the instruction just
* before it.
*/
if (seqaddr != 0)
seqaddr -= 1;
cs = ahc->critical_sections;
for (i = 0; i < ahc->num_critical_sections; i++, cs++) {