mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-02 12:53:33 +00:00
Oops, convert a tsleep() to a msleep() that was missed when adding locking
to this driver. Reported by: Michael Butler : imb of protected-networks net
This commit is contained in:
parent
8cb4dfcabd
commit
27acd9c0f1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=172667
@ -436,7 +436,7 @@ intsmb_stop(struct intsmb_softc *sc)
|
||||
/* So that it can use device during device probe on SMBus. */
|
||||
return (intsmb_stop_poll(sc));
|
||||
|
||||
error = tsleep(sc, PWAIT | PCATCH, "SMBWAI", hz / 8);
|
||||
error = msleep(sc, &sc->lock, PWAIT | PCATCH, "SMBWAI", hz / 8);
|
||||
if (error == 0) {
|
||||
status = bus_read_1(sc->io_res, PIIX4_SMBHSTSTS);
|
||||
if (!(status & PIIX4_SMBHSTSTAT_BUSY)) {
|
||||
|
Loading…
Reference in New Issue
Block a user