]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: info: Fix leaks of child entries at snd_info_free_entry()
authorTakashi Iwai <tiwai@suse.de>
Mon, 18 May 2015 06:59:12 +0000 (08:59 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 18 May 2015 07:10:45 +0000 (09:10 +0200)
commit8b1909cd2cdae8e6e0a1dcdf485ad2fc94a414e0
tree31fd899ae39113c1c01053fcc709338d3ce99c29
parentadefe91830753e1741a95d5d1878fbfc2aab4aa6
ALSA: info: Fix leaks of child entries at snd_info_free_entry()

snd_info_free_entry() releases the all children nodes as well, but due
to the wrong timing of releasing the link, the children nodes may be
disconnected but left unreleased.  This patch fixes it by moving the
link free at the right position.  Also it eases list_for_each_entry()
without _safe option in snd_info_disconnect() because it no longer
frees the children nodes there.

Fixes: 81f46fedf0af ('ALSA: core: Remove child proc file elements recursively')
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/info.c