diff options
| author | wangdicheng <wangdicheng@kylinos.cn> | 2026-04-02 10:36:04 +0800 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-04-02 12:44:58 +0200 |
| commit | 1558905669e4da922fbaa7cf6507eb14779bffbd (patch) | |
| tree | 7e5b4cbed9eb55298bbb55adedbb834b6fec34c3 | |
| parent | 61327f3d817cb5820559ad4f8d0d9abed3d379b1 (diff) | |
ALSA: aoa/tas: Fix OF node leak on probe failure
Add missing of_node_put() in the error path.
Signed-off-by: wangdicheng <wangdicheng@kylinos.cn>
Link: https://patch.msgid.link/20260402023604.54682-1-wangdich9700@163.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
| -rw-r--r-- | sound/aoa/codecs/tas.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |
