[PATCH 1/2 v2] ALSA: control - double free in snd_ctl_led_init()
Takashi Iwai
tiwai at suse.de
Fri Apr 9 16:16:09 CEST 2021
On Fri, 09 Apr 2021 14:34:41 +0200,
Dan Carpenter wrote:
>
> "group - 1" was intended here instead of "group". The current error
> handling will double free the first item in the array and leak the last
> item.
>
> Fixes: cb17fe0045aa ("ALSA: control - add sysfs support to the LED trigger module")
> Signed-off-by: Dan Carpenter <dan.carpenter at oracle.com>
> ---
> v2: The first patch wasn't right. It fixed the leak but left the double
> free.
Applied now. Thanks.
Takashi
More information about the Alsa-devel
mailing list