This is a note to let you know that I've just added the patch titled
ALSA: snd-usb: use list_for_each_safe for endpoint resources
to the 3.5-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:
alsa-snd-usb-use-list_for_each_safe-for-endpoint-resources.patch
and it can be found in the queue-3.5 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.
>From 03d2f44e967b3c2cf79a6dfb904c8880616c7f83 Mon Sep 17 00:00:00 2001
From: Pavel Roskin <[email protected]>
Date: Thu, 30 Aug 2012 17:11:17 -0400
Subject: ALSA: snd-usb: use list_for_each_safe for endpoint resources
From: Pavel Roskin <[email protected]>
commit 03d2f44e967b3c2cf79a6dfb904c8880616c7f83 upstream.
snd_usb_endpoint_free() frees the structure that contains its argument.
Signed-off-by: Pavel Roskin <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
sound/usb/card.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/sound/usb/card.c
+++ b/sound/usb/card.c
@@ -553,7 +553,7 @@ static void snd_usb_audio_disconnect(str
struct snd_usb_audio *chip)
{
struct snd_card *card;
- struct list_head *p;
+ struct list_head *p, *n;
if (chip == (void *)-1L)
return;
@@ -570,7 +570,7 @@ static void snd_usb_audio_disconnect(str
snd_usb_stream_disconnect(p);
}
/* release the endpoint resources */
- list_for_each(p, &chip->ep_list) {
+ list_for_each_safe(p, n, &chip->ep_list) {
snd_usb_endpoint_free(p);
}
/* release the midi resources */
Patches currently in stable-queue which might be from [email protected] are
queue-3.5/alsa-snd-usb-use-list_for_each_safe-for-endpoint-resources.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html