diff options
author | Andrey Konovalov <andreyknvl@gmail.com> | 2016-02-13 11:08:06 +0300 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2016-02-27 14:28:48 +0000 |
commit | 78a6b3f7be7ae07c7e60f638c77c87701a703559 (patch) | |
tree | 1d934a83e0d406a4b8d2432ba03fa417ea156829 /include/acpi/actbl.h | |
parent | 57ce57616accf5c20822be601a0ddfef08af000b (diff) | |
download | lwn-78a6b3f7be7ae07c7e60f638c77c87701a703559.tar.gz lwn-78a6b3f7be7ae07c7e60f638c77c87701a703559.zip |
ALSA: usb-audio: avoid freeing umidi object twice
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 <andreyknvl@gmail.com>
Acked-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'include/acpi/actbl.h')
0 files changed, 0 insertions, 0 deletions