dplayx: Fix semaphore deadlock.
- Make sure to release the dplayx semaphore in for error cases as well.
- Prevent race condition between creation of the semaphore and
grabbing of the lock by creating the semaphore in the locked state
instead of unlocked.
Showing
Please
register
or
sign in
to comment