]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: PCM: Fix some races at disconnection
authorTakashi Iwai <tiwai@suse.de>
Fri, 12 Oct 2012 13:07:34 +0000 (15:07 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 30 Oct 2012 10:06:48 +0000 (11:06 +0100)
commitf785c5c49353d3db5ecc599feb87daee330ed414
treea5729ddd409994d5912ba71b372169e3fa7f879d
parent7b999a7821b0734f6f45f61be770f32ce58ceb2e
ALSA: PCM: Fix some races at disconnection

Fix races at PCM disconnection:
- while a PCM device is being opened or closed
- while the PCM state is being changed without lock in prepare,
  hw_params, hw_free ops

Reported-by: Matthieu CASTET <matthieu.castet@parrot.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm.c
sound/core/pcm_native.c