Bug 7627 - ASoC: pxa: fix a memory leak in probe()
Summary: ASoC: pxa: fix a memory leak in probe()
Status: NEW
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: drivers (show other bugs) drivers
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: GuixinLiu
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-24 11:03 UTC by zhujun
Modified: 2023-11-24 13:38 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zhujun cmss_group 2023-11-24 11:03:41 UTC
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)
Comment 1 小龙 admin 2023-11-24 13:38:25 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/2463