aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
diff options
context:
space:
mode:
authorHaowen Bai <baihaowen@meizu.com>2022-03-24 17:27:14 +0800
committerAlex Deucher <alexander.deucher@amd.com>2022-03-31 23:05:53 -0400
commit3222a81148ca273af66cb67f8445114bc633e747 (patch)
treecc6935219b7d54d7ac185afb9353b32f4538867a /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
parentc4af42b4eb5beb6f5ae96b5be786862bbb9cfb16 (diff)
drm/amd/display: Fix pointer dereferenced before checking
The pointer edid_buf is dereferencing pointer edid before edid is being null checked. Fix this by assigning edid->raw_edid to edid_buf only if edid 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