From 1558905669e4da922fbaa7cf6507eb14779bffbd Mon Sep 17 00:00:00 2001 From: wangdicheng Date: Thu, 2 Apr 2026 10:36:04 +0800 Subject: [PATCH] ALSA: aoa/tas: Fix OF node leak on probe failure Add missing of_node_put() in the error path. Signed-off-by: wangdicheng Link: https://patch.msgid.link/20260402023604.54682-1-wangdich9700@163.com Signed-off-by: Takashi Iwai --- 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 13da2b159ad0d..25214d3da65d1 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.47.3