From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:51867 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751477AbcBNTdj (ORCPT ); Sun, 14 Feb 2016 14:33:39 -0500 Subject: Patch "ALSA: usb-audio: avoid freeing umidi object twice" has been added to the 3.10-stable tree To: andreyknvl@gmail.com, clemens@ladisch.de, gregkh@linuxfoundation.org, tiwai@suse.de Cc: , From: Date: Sun, 14 Feb 2016 11:33:36 -0800 Message-ID: <1455478416248219@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org List-ID: This is a note to let you know that I've just added the patch titled ALSA: usb-audio: avoid freeing umidi object twice 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-usb-audio-avoid-freeing-umidi-object-twice.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 know about it. >>From 07d86ca93db7e5cdf4743564d98292042ec21af7 Mon Sep 17 00:00:00 2001 From: Andrey Konovalov Date: Sat, 13 Feb 2016 11:08:06 +0300 Subject: ALSA: usb-audio: avoid freeing umidi object twice From: Andrey Konovalov commit 07d86ca93db7e5cdf4743564d98292042ec21af7 upstream. The 'umidi' object will be free'd on the error path by snd_usbmidi_free() when tearing down the rawmidi interface. So we shouldn't try to free it in snd_usbmidi_create() after having registered the rawmidi interface. Found by KASAN. Signed-off-by: Andrey Konovalov Acked-by: Clemens Ladisch Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/usb/midi.c | 1 - 1 file changed, 1 deletion(-) --- a/sound/usb/midi.c +++ b/sound/usb/midi.c @@ -2291,7 +2291,6 @@ int snd_usbmidi_create(struct snd_card * else err = snd_usbmidi_create_endpoints(umidi, endpoints); if (err < 0) { - snd_usbmidi_free(umidi); return err; } Patches currently in stable-queue which might be from andreyknvl@gmail.com are queue-3.10/alsa-usb-audio-avoid-freeing-umidi-object-twice.patch