diff options
| author | Takashi Iwai <tiwai@suse.de> | 2026-10-13 14:05:22 +0200 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-10-14 08:07:47 +0200 |
| commit | f421be924fec67f74bb0b6988ea8f0a3480df2a7 (patch) | |
| tree | 001a35445d3757196d773358ee9b36aa15ab60c4 /tools/lib/python/kdoc | |
| parent | 8ff1161ac5aa02f3261e00f07d6212be2b12384b (diff) | |
ALSA: jack: Fix kctl free at error in snd_jack_kctl_new()
When an error happens in snd_jack_kctl_new(), it tries to free the new
kcontrol element via snd_ctl_free_one(). But snd_ctl_free_one()
releases only the memories, and the internal linked list and hash
entries still remain, which may lead to bogus accesses to user.
Replace with the correct destructor, snd_ctl_remove(), for clearing
the whole resources of the given kcontrol, instead.
Fixes: 9058cbe1eed2 ("ALSA: jack: implement kctl creating for jack devices")
Reported-by: Sashiko <sashiko-bot@kernel.org>
Link: https://patch.msgid.link/20261013120528.52586-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/lib/python/kdoc')
0 files changed, 0 insertions, 0 deletions
