Fixed wait_for_resources() locking, reported by Ingo.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16218 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-02-03 17:12:34 +00:00
parent 375cec2c5e
commit 811ada6cae

View File

@ -321,15 +321,15 @@ static void
wait_for_resources(void)
{
TRACE(("wait_for_resources()\n"));
++pnp_resource_wait_count;
// we have to release while waiting
benaphore_lock(&gNodeLock);
acquire_sem(pnp_resource_wait_sem);
benaphore_unlock(&gNodeLock);
acquire_sem(pnp_resource_wait_sem);
benaphore_lock(&gNodeLock);
}