rtsx: Fix wakeup race similar to sdhci one fixed in 35547df5c7

rtsx copied code from sdhci, and has the same wakeup race bug that was
fixed in 35547df5c7, so apply a similar fix here.

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2021-08-10 17:07:50 -06:00
parent bd9e461cf7
commit 9339e7c0bd

View file

@ -3532,8 +3532,8 @@ rtsx_mmcbr_release_host(device_t bus, device_t child __unused)
sc = device_get_softc(bus);
RTSX_LOCK(sc);
sc->rtsx_bus_busy--;
RTSX_UNLOCK(sc);
wakeup(&sc->rtsx_bus_busy);
RTSX_UNLOCK(sc);
return (0);
}