Patch "staging: line6: Fix unlocked snd_pcm_stop() call" has been added to the 3.4-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    staging: line6: Fix unlocked snd_pcm_stop() call

to the 3.4-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     staging-line6-fix-unlocked-snd_pcm_stop-call.patch
and it can be found in the queue-3.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From 4bcfe68e7e4db75b1ec8d3668f04c435ff98b809 Mon Sep 17 00:00:00 2001
From: Takashi Iwai <tiwai@xxxxxxx>
Date: Thu, 11 Jul 2013 18:02:38 +0200
Subject: staging: line6: Fix unlocked snd_pcm_stop() call

From: Takashi Iwai <tiwai@xxxxxxx>

commit 86f0b5b86d142b9323432fef078a6cf0fb5dda74 upstream.

snd_pcm_stop() must be called in the PCM substream lock context.

Signed-off-by: Takashi Iwai <tiwai@xxxxxxx>
Signed-off-by: Ben Hutchings <ben@xxxxxxxxxxxxxxx>
Cc: Weng Meiling <wengmeiling.weng@xxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

---
 drivers/staging/line6/pcm.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

--- a/drivers/staging/line6/pcm.c
+++ b/drivers/staging/line6/pcm.c
@@ -378,8 +378,11 @@ static int snd_line6_pcm_free(struct snd
 */
 static void pcm_disconnect_substream(struct snd_pcm_substream *substream)
 {
-	if (substream->runtime && snd_pcm_running(substream))
+	if (substream->runtime && snd_pcm_running(substream)) {
+		snd_pcm_stream_lock_irq(substream);
 		snd_pcm_stop(substream, SNDRV_PCM_STATE_DISCONNECTED);
+		snd_pcm_stream_unlock_irq(substream);
+	}
 }
 
 /*


Patches currently in stable-queue which might be from tiwai@xxxxxxx are

queue-3.4/asoc-sta32x-fix-wrong-enum-for-limiter2-release-rate.patch
queue-3.4/saa7134-fix-unlocked-snd_pcm_stop-call.patch
queue-3.4/asoc-wm8770-fix-wrong-number-of-enum-items.patch
queue-3.4/alsa-usb-audio-work-around-kef-x300a-firmware-bug.patch
queue-3.4/alsa-usx2y-fix-unlocked-snd_pcm_stop-call.patch
queue-3.4/staging-line6-fix-unlocked-snd_pcm_stop-call.patch
queue-3.4/asoc-s6000-fix-unlocked-snd_pcm_stop-call.patch
queue-3.4/alsa-atiixp-fix-unlocked-snd_pcm_stop-call.patch
queue-3.4/alsa-6fire-fix-unlocked-snd_pcm_stop-call.patch
queue-3.4/alsa-pxa2xx-fix-unlocked-snd_pcm_stop-call.patch
queue-3.4/alsa-ua101-fix-unlocked-snd_pcm_stop-call.patch
queue-3.4/asoc-sta32x-fix-array-access-overflow.patch
queue-3.4/alsa-asihpi-fix-unlocked-snd_pcm_stop-call.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]