mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-12 09:58:36 +00:00
Remove conflicts between unsinged char *s and int s.
It was possible cause of kernel panic. Pointed Out by: phk@FreeBSD.ORG
This commit is contained in:
parent
5e469ffaee
commit
e3f875caff
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=69763
@ -668,7 +668,7 @@ stg_negate_signal(sc, mask, s)
|
||||
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||||
bus_space_tag_t bst = sc->sc_iot;
|
||||
bus_space_handle_t bsh = sc->sc_ioh;
|
||||
int s;
|
||||
int ss;
|
||||
int tout = 0;
|
||||
#ifdef __FreeBSD__
|
||||
struct callout_handle ch;
|
||||
@ -684,7 +684,7 @@ stg_negate_signal(sc, mask, s)
|
||||
{
|
||||
regv = bus_space_read_1(bst, bsh, tmc_bstat);
|
||||
if (regv == 0xff) {
|
||||
s = splhigh();
|
||||
ss = splhigh();
|
||||
if (tout == 0) {
|
||||
#ifdef __FreeBSD__
|
||||
untimeout(settimeout, &tout, ch);
|
||||
@ -692,22 +692,22 @@ stg_negate_signal(sc, mask, s)
|
||||
untimeout(settimeout, &tout);
|
||||
#endif
|
||||
}
|
||||
splx(s);
|
||||
splx(ss);
|
||||
return EIO;
|
||||
}
|
||||
}
|
||||
while ((regv & mask) != 0 && tout == 0);
|
||||
|
||||
s = splhigh();
|
||||
ss = splhigh();
|
||||
if (tout == 0) {
|
||||
#ifdef __FreeBSD__
|
||||
untimeout(settimeout, &tout, ch);
|
||||
#else
|
||||
untimeout(settimeout, &tout);
|
||||
#endif
|
||||
splx(s);
|
||||
splx(ss);
|
||||
} else {
|
||||
splx(s);
|
||||
splx(ss);
|
||||
printf("%s: %s singal off timeout \n", slp->sl_xname, s);
|
||||
return EIO;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user