diff options
author | 2022-03-24 17:46:02 +0800 | |
---|---|---|
committer | 2022-03-31 23:05:54 -0400 | |
commit | e84c8ab52dc76b09cb1c8885950ad4eaaf340bf6 (patch) | |
tree | fba563734137e91e1b9a7873eac09b7719c45b95 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | drm/amdgpu: Add tlb_cb for unlocked update (diff) | |
download | linux-dev-e84c8ab52dc76b09cb1c8885950ad4eaaf340bf6.tar.xz linux-dev-e84c8ab52dc76b09cb1c8885950ad4eaaf340bf6.zip |
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: Haowen Bai <baihaowen@meizu.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions