Free the "priv" pointer before returning the error code. Additional info: 社区有patch已经解决 ASoC: pxa: fix a memory leak in probe() commit 05e06fb6a6423f1ab59210c1616abb8272e13e53 Reference:https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.10.y&id=05e06fb6a6423f1ab59210c1616abb8272e13e53 git cherry-pick -s 05e06fb6a6(with stable-v5.10.199 repo added)
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/2463