diff options
| author | Colin Ian King <colin.king@canonical.com> | 2019-11-08 14:38:14 +0000 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2019-11-13 15:29:42 -0500 |
| commit | 320f6d81aaeed354f832a46685d5eac91006db72 (patch) | |
| tree | e8fffc4eeecf362c327e18bc7abaf4d69f24afc8 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
| parent | drm/amd/display: Add MST atomic routines (diff) | |
| download | linux-320f6d81aaeed354f832a46685d5eac91006db72.tar.gz linux-320f6d81aaeed354f832a46685d5eac91006db72.zip | |
drm/amd/display: fix dereference of pointer aconnector when it is null
Currently pointer aconnector is being dereferenced by the call to
to_dm_connector_state before it is being null checked, this could
lead to a null pointer dereference. Fix this by checking that
aconnector is null before dereferencing it.
Addresses-Coverity: ("Dereference before null check")
Reviewed-by: Mikita Lipski <mikita.lipski@amd.com>
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions
