Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f05631a8 authored by Chen Ni's avatar Chen Ni Committed by Sasha Levin
Browse files

drm/tegra: dsi: Add missing check for of_find_device_by_node



[ Upstream commit afe6fcb9775882230cd29b529203eabd5d2a638d ]

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.

Fixes: e94236cd ("drm/tegra: dsi: Add ganged mode support")
Signed-off-by: default avatarChen Ni <nichen@iscas.ac.cn>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231024080738.825553-1-nichen@iscas.ac.cn


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent da7ece21
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment