mirror of
https://github.com/opnsense/src.git
synced 2026-02-17 17:49:34 -05:00
Call wakeup() with the lock held to avoid missed wakeup races.
Submitted by: luiz
Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
parent
5dedd2517d
commit
35547df5c7
1 changed files with 1 additions and 1 deletions
|
|
@ -2078,8 +2078,8 @@ sdhci_generic_release_host(device_t brdev __unused, device_t reqdev)
|
|||
/* Deactivate led. */
|
||||
WR1(slot, SDHCI_HOST_CONTROL, slot->hostctrl &= ~SDHCI_CTRL_LED);
|
||||
slot->bus_busy--;
|
||||
SDHCI_UNLOCK(slot);
|
||||
wakeup(slot);
|
||||
SDHCI_UNLOCK(slot);
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue