summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorHaotian Zhang <vulab@iscas.ac.cn>2026-08-20 09:41:17 +0800
committerTakashi Iwai <tiwai@suse.de>2026-08-20 10:54:45 +0200
commitd736eba9c453fedce664fdf592c8b71ecff1932b (patch)
treeb859cd355c098ffab14345ef758a387a140a8dcd /tools/perf/scripts/python/stackcollapse.py
parent352cef030f9036a658e6eb03d6bb85fa19c7c103 (diff)
ALSA: ice1712: Fix the card leak at probe error with the auto-cleanup
snd_ice1712_probe() performs multiple initialization steps after snd_card_new(), but directly returns on failures from later steps without releasing the ALSA card, causing resource leaks when probing fails. Use snd_devm_card_new() together with scope-based cleanup via __free(snd_card_unref), and clear the card pointer after successful registration to keep it alive. Fixes: ca642da4b33d ("ALSA: ice1712: Allocate resources with device-managed APIs") Suggested-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn> Link: https://patch.msgid.link/20260820014117.14044-1-vulab@iscas.ac.cn Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions