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

@ -325,11 +325,11 @@ wait_for_resources(void)
++pnp_resource_wait_count; ++pnp_resource_wait_count;
// we have to release while waiting // we have to release while waiting
benaphore_lock(&gNodeLock); benaphore_unlock(&gNodeLock);
acquire_sem(pnp_resource_wait_sem); acquire_sem(pnp_resource_wait_sem);
benaphore_unlock(&gNodeLock); benaphore_lock(&gNodeLock);
} }