Skip to content
Commit e84c8ab5 authored by Haowen Bai's avatar Haowen Bai Committed by Alex Deucher
Browse files

drm/amd/display: Fix pointer dereferenced before checking



The value actual_pix_clk_100Hz is dereferencing pointer pix_clk_params
before pix_clk_params is being null checked. Fix this by assigning
pix_clk_params->requested_pix_clk_100hz to actual_pix_clk_100Hz only if
pix_clk_params is not NULL, otherwise just NULL.

Signed-off-by: default avatarHaowen Bai <baihaowen@meizu.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 44e121fb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment