* [PATCH 2/2] ALSA: aoa/tas: Fix OF node leak on probe failure
@ 2026-04-02 2:36 wangdich9700
2026-04-02 10:45 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: wangdich9700 @ 2026-04-02 2:36 UTC (permalink / raw)
To: johannes, perex, tiwai, wangdich9700; +Cc: linux-sound, wangdicheng
From: wangdicheng <wangdicheng@kylinos.cn>
Add missing of_node_put() in the error path.
Signed-off-by: wangdicheng <wangdicheng@kylinos.cn>
---
sound/aoa/codecs/tas.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sound/aoa/codecs/tas.c b/sound/aoa/codecs/tas.c
index 13da2b159ad0..25214d3da65d 100644
--- a/sound/aoa/codecs/tas.c
+++ b/sound/aoa/codecs/tas.c
@@ -872,6 +872,7 @@ static int tas_i2c_probe(struct i2c_client *client)
return 0;
fail:
mutex_destroy(&tas->mtx);
+ of_node_put(tas->codec.node);
kfree(tas);
return -EINVAL;
}
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-04-02 10:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-02 2:36 [PATCH 2/2] ALSA: aoa/tas: Fix OF node leak on probe failure wangdich9700
2026-04-02 10:45 ` Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox