Bug 9275 - drm/tegra: dsi: missing check for of_find_device_by_node
Summary: drm/tegra: dsi: missing check for of_find_device_by_node
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: 2024-06-04 11:12 UTC by furacanad
Modified: 2024-06-04 12:03 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description furacanad 2024-06-04 11:12:04 UTC
Description of problem:

Add check for the return value of of_find_device_by_node() and return
the error if it fails in order to avoid NULL pointer dereference.

Reference:https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.10.y&id=92003981a6df5dc84af8a5904f8ee112fa324129
Comment 1 小龙 admin 2024-06-04 12:03:08 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/3313