Re: [PATCH] midi: avoid freeing umidi object twice

2016-02-13 Thread Takashi Iwai
On Sat, 13 Feb 2016 09:08:06 +0100, Andrey Konovalov wrote: > > 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

[PATCH] midi: avoid freeing umidi object twice

2016-02-13 Thread Andrey Konovalov
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. Acked-by: Clemens Ladisch Signed-off-by: Andrey Konovalov ---