Bug 4049 - [ANCK 5.10] of_select_probe_type函数中的空指针引用
Summary: [ANCK 5.10] of_select_probe_type函数中的空指针引用
Status: RESOLVED FIXED
Alias: None
Product: ANCK 4.19 Dev
Classification: ANCK
Component: drivers (show other bugs) drivers
Version: 4.19-026.x
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: GuixinLiu
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-13 19:32 UTC by songkai
Modified: 2023-02-28 19:37 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 songkai inspur_group 2023-02-13 19:32:44 UTC
Description of problem:


flash初始化流程中获取flash接口类型of_match_device如果没有找到,match会返回空,代码中未对match做判断直接引用,可能出现空指针访问。
Comment 1 songkai inspur_group 2023-02-13 19:47:37 UTC
upstream 8b740c08eb8202817562c358e8d867db0f7d6565已经解决
Comment 2 maqiao alibaba_cloud_group 2023-02-28 19:37:36 UTC
merged: https://gitee.com/anolis/cloud-kernel/pulls/1183