]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: direct plugins: do more safe IPC semaphore handling
authorJaroslav Kysela <perex@perex.cz>
Tue, 9 Apr 2013 12:31:20 +0000 (14:31 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 9 Apr 2013 12:37:21 +0000 (14:37 +0200)
commita6813c2d0e2fa4586122d23748033a8bab206b8b
tree047a794bda0b6edb91405d096f8db6afbed2441e
parentb6eb0f9bfddb836fcc366d81f07ba62e46c95ccf
pcm: direct plugins: do more safe IPC semaphore handling

As reported dead-lock, do local lock counting and invoke abort() when
the lock counts do not match at close() time.

Reported-by: <mateen abdulmateen.shaikh@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/pcm/pcm_direct.h
src/pcm/pcm_dmix.c
src/pcm/pcm_dshare.c
src/pcm/pcm_dsnoop.c