mirror of
https://github.com/torvalds/linux.git
synced 2026-05-13 00:28:54 +02:00
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>
This commit is contained in:
parent
61327f3d81
commit
1558905669
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user