ALSA: PCM: Fix some races at disconnection
commit9b0573c07f278e9888c352aa9724035c75784ea0
authorTakashi Iwai <tiwai@suse.de>
Fri, 12 Oct 2012 13:07:34 +0000 (12 15:07 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 30 Oct 2012 10:06:48 +0000 (30 11:06 +0100)
treea5729ddd409994d5912ba71b372169e3fa7f879d
parent1693849f71b818be9e6e2b6e6fbcb45f6f518f96
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