This is a note to let you know that I've just added the patch titled ALSA: hda - Fix the max length of control name in generic parser to the 3.10-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-hda-fix-the-max-length-of-control-name-in-generic-parser.patch and it can be found in the queue-3.10 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 0c055b3413868227f2e85701c4e6938c9581f0e2 Mon Sep 17 00:00:00 2001 From: Takashi Iwai <tiwai@xxxxxxx> Date: Fri, 28 Jun 2013 11:51:32 +0200 Subject: ALSA: hda - Fix the max length of control name in generic parser From: Takashi Iwai <tiwai@xxxxxxx> commit 0c055b3413868227f2e85701c4e6938c9581f0e2 upstream. add_control_with_pfx() in hda_generic.c assumes a shorter name string for the control element, and this resulted in the truncation of the long but valid string like "Headphone Surround Switch" in the middle. This patch aligns the max size to the actual limit of snd_ctl_elem_id, 44. Signed-off-by: Takashi Iwai <tiwai@xxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- sound/pci/hda/hda_generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/sound/pci/hda/hda_generic.c +++ b/sound/pci/hda/hda_generic.c @@ -840,7 +840,7 @@ static int add_control_with_pfx(struct h const char *pfx, const char *dir, const char *sfx, int cidx, unsigned long val) { - char name[32]; + char name[44]; snprintf(name, sizeof(name), "%s %s %s", pfx, dir, sfx); if (!add_control(spec, type, name, cidx, val)) return -ENOMEM; Patches currently in stable-queue which might be from tiwai@xxxxxxx are queue-3.10/alsa-hda-fix-missing-mic-boost-controls-for-via-codecs.patch queue-3.10/alsa-hda-fix-return-value-of-snd_hda_check_power_state.patch queue-3.10/asoc-atmel-fix-unlocked-snd_pcm_stop-call.patch queue-3.10/alsa-usx2y-fix-unlocked-snd_pcm_stop-call.patch queue-3.10/asoc-s6000-fix-unlocked-snd_pcm_stop-call.patch queue-3.10/alsa-hda-add-new-gpu-codec-id-to-snd-hda.patch queue-3.10/alsa-ua101-fix-unlocked-snd_pcm_stop-call.patch queue-3.10/alsa-6fire-fix-unlocked-snd_pcm_stop-call.patch queue-3.10/alsa-hda-fix-eapd-vmaster-hook-for-ad1884-co.patch queue-3.10/alsa-hda-cache-the-mux-selection-for-generic-hdmi.patch queue-3.10/alsa-seq-oss-initialize-midi-clients-asynchronously.patch queue-3.10/alsa-atiixp-fix-unlocked-snd_pcm_stop-call.patch queue-3.10/alsa-asihpi-fix-unlocked-snd_pcm_stop-call.patch queue-3.10/alsa-pxa2xx-fix-unlocked-snd_pcm_stop-call.patch queue-3.10/alsa-hda-fix-the-max-length-of-control-name-in-generic-parser.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