diff options
author | Haowen Bai <baihaowen@meizu.com> | 2022-03-24 17:46:02 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-03-31 23:05:54 -0400 |
commit | e84c8ab52dc76b09cb1c8885950ad4eaaf340bf6 (patch) | |
tree | fba563734137e91e1b9a7873eac09b7719c45b95 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |
parent | 44e121fbf155edc93eceaae273038afbf90f52a7 (diff) | |
download | linux-e84c8ab52dc76b09cb1c8885950ad4eaaf340bf6.tar.gz linux-e84c8ab52dc76b09cb1c8885950ad4eaaf340bf6.tar.bz2 linux-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_vm.c')
0 files changed, 0 insertions, 0 deletions