mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
ipmi_polled_enqueue_request() is already called with the lock held, just
assert it rather than recursing. Reported by: mjacob Pointy hat: jhb MFC after: 3 days
This commit is contained in:
parent
d566310d21
commit
5283d39b98
1 changed files with 2 additions and 2 deletions
|
|
@ -584,9 +584,9 @@ int
|
|||
ipmi_polled_enqueue_request(struct ipmi_softc *sc, struct ipmi_request *req)
|
||||
{
|
||||
|
||||
IPMI_LOCK(sc);
|
||||
IPMI_LOCK_ASSERT(sc);
|
||||
|
||||
TAILQ_INSERT_TAIL(&sc->ipmi_pending_requests, req, ir_link);
|
||||
IPMI_UNLOCK(sc);
|
||||
cv_signal(&sc->ipmi_request_added);
|
||||
return (0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue