diff options
| author | Andrey Konovalov <andreyknvl@gmail.com> | 2016-02-13 11:08:06 +0300 |
|---|---|---|
| committer | Rygebin <kaankulahli2@gmail.com> | 2017-06-02 13:49:24 +0000 |
| commit | 044ae576db5ab48f881c16f563bab40e4ac230aa (patch) | |
| tree | 8d1aaf9629175a783139cd9d865aee54f96e76d4 /net/lapb/lapb_timer.c | |
| parent | de806924af4b7326dd66671307f33334e3527c87 (diff) | |
ALSA: usb-audio: avoid freeing umidi object twice
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 <andreyknvl@gmail.com>
Acked-by: Clemens Ladisch <clemens@ladisch.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions
