ALSA: aoa/tas: Fix OF node leak on probe failure
Subsystems (2)
PATCH 2/2 ALSA: aoa/tas: Fix OF node leak on probe failure
From: wangdicheng <[email protected]>
Add missing of_node_put() in the error path.
Signed-off-by wangdicheng <[email protected]>
--- sound/aoa/codecs/tas.c | 1 + 1 file changed, 1 insertion(+)
sound/aoa/codecs/tas.c +1 -0
@@ -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 ; }
Signature · 1 line
2.25.1
Takashi Iwai
AppliedQuoted 6 lines · On Thu, 02 Apr 2026 04:36:04 +0200, [email protected] wrote:
From: wangdicheng <[email protected]>
Add missing
of_node_put()in the error path.Signed-off-by wangdicheng <[email protected]>
Applied to for-next branch now. Thanks.
Takashi