diff options
| author | Cássio Gabriel <cassiogabrielcontato@gmail.com> | 2026-03-30 01:00:34 -0300 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-03-30 09:35:56 +0200 |
| commit | 4ec93f070eda6b765b62efcaed9241c3b3b0b6ad (patch) | |
| tree | b681af24a5764e5f53f5435d15e629b693261b07 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 472571498baaa67b6ea70d6c0154730be3da3c36 (diff) | |
ALSA: aoa: i2sbus: fix OF node lifetime handling
i2sbus_add_dev() keeps the matched "sound" child pointer after
for_each_child_of_node() has dropped the iterator reference. Take an
extra reference before saving that node and drop it after the
layout-id/device-id lookup is complete.
The function also stores np in dev->sound.ofdev.dev.of_node without
taking a reference for the embedded soundbus device. Since i2sbus
overrides the embedded platform device release callback, balance that
reference explicitly in the local error path and in i2sbus_release_dev().
Fixes: f3d9478b2ce4 ("[ALSA] snd-aoa: add snd-aoa")
Cc: stable@vger.kernel.org
Signed-off-by: Cássio Gabriel <cassiogabrielcontato@gmail.com>
Link: https://patch.msgid.link/20260330-aoa-i2sbus-ofnode-lifetime-v1-1-51c309f4ff06@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
