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

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