diff options
| author | Haowen Bai <[email protected]> | 2022-03-24 09:27:14 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2022-04-01 03:05:53 +0000 |
| commit | 3222a81148ca273af66cb67f8445114bc633e747 (patch) | |
| tree | cc6935219b7d54d7ac185afb9353b32f4538867a /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |
| parent | drm/amd/display: Fix allocate_mst_payload assert on resume (diff) | |
| download | kernel-3222a81148ca273af66cb67f8445114bc633e747.tar.gz kernel-3222a81148ca273af66cb67f8445114bc633e747.zip | |
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 <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions
