mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
drm/amd/display: Check null pointer before dereferencing se
[ Upstream commit ff599ef6970ee000fa5bc38d02fa5ff5f3fc7575 ] [WHAT & HOW] se is null checked previously in the same function, indicating it might be null; therefore, it must be checked when used again. This fixes 1 FORWARD_NULL issue reported by Coverity. Acked-by: Alex Hung <alex.hung@amd.com> Reviewed-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com> Signed-off-by: Alex Hung <alex.hung@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0857b1c573
commit
97a79933fb
@@ -1659,7 +1659,7 @@ bool dc_validate_boot_timing(const struct dc *dc,
|
|||||||
if (crtc_timing->pix_clk_100hz != pix_clk_100hz)
|
if (crtc_timing->pix_clk_100hz != pix_clk_100hz)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (!se->funcs->dp_get_pixel_format)
|
if (!se || !se->funcs->dp_get_pixel_format)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (!se->funcs->dp_get_pixel_format(
|
if (!se->funcs->dp_get_pixel_format(
|
||||||
|
|||||||
Reference in New Issue
Block a user