This is a note to let you know that I've just added the patch titled
ALSA: snd-usb: avoid dividing by zero on invalid input
to the 3.0-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-avoid-dividing-by-zero-on-invalid-input.patch
and it can be found in the queue-3.0 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.
>From 60c961a9e1ed879a4d151df6076bf1203f595f73 Mon Sep 17 00:00:00 2001
From: Nicolai Krakowiak <[email protected]>
Date: Thu, 4 Aug 2011 15:56:27 +0200
Subject: ALSA: snd-usb: avoid dividing by zero on invalid input
From: Nicolai Krakowiak <[email protected]>
commit 60c961a9e1ed879a4d151df6076bf1203f595f73 upstream.
Signed-off-by: Nicolai Krakowiak <[email protected]>
Acked-by: Daniel Mack <[email protected]>
Acked-by: Clemens Ladisch <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
sound/usb/mixer.c | 5 +++++
1 file changed, 5 insertions(+)
--- a/sound/usb/mixer.c
+++ b/sound/usb/mixer.c
@@ -1191,6 +1191,11 @@ static int parse_audio_feature_unit(stru
if (state->mixer->protocol == UAC_VERSION_1) {
csize = hdr->bControlSize;
+ if (!csize) {
+ snd_printdd(KERN_ERR "usbaudio: unit %u: "
+ "invalid bControlSize == 0\n", unitid);
+ return -EINVAL;
+ }
channels = (hdr->bLength - 7) / csize - 1;
bmaControls = hdr->bmaControls;
} else {
Patches currently in stable-queue which might be from
[email protected] are
queue-3.0/alsa-snd-usb-operate-on-given-mixer-interface-only.patch
queue-3.0/alsa-snd-usb-accept-uac2-format_type-descriptors-with.patch
queue-3.0/alsa-snd-usb-avoid-dividing-by-zero-on-invalid-input.patch
_______________________________________________
stable mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/stable