summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-01-23 17:59:40 +0100
committerTakashi Iwai <tiwai@suse.de>2019-01-24 14:40:26 +0100
commit3a55437141a1d287dead685b37fe240185144f15 (patch)
treed47977876513a4e0c71ca6a07d1d7de99093c9b7 /tools
parent480e32ebd524ffdf3d50cc5cac179fb9e44a552d (diff)
downloadlinux-3a55437141a1d287dead685b37fe240185144f15.tar.bz2
ALSA: proc: Avoid possible leaks of snd_info_entry objects
This patch changes the parent pointer assignment of snd_info_entry object to be always non-NULL. More specifically,check the parent argument in snd_info_create_module_entry() & co, and assign snd_proc_root if NULL is passed there. This assures that the proc object is always freed when the root is freed, so avoid possible memory leaks. For example, some error paths (e.g. snd_info_register() error at snd_minor_info_init()) may leave snd_info_entry object although the proc file itself is freed. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions