diff options
author | Jimmy Kizito <Jimmy.Kizito@amd.com> | 2021-09-12 18:21:52 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-11-17 13:03:46 +0300 |
commit | 9ea7c08eb6344bf46b272e999830b7617e1c3b5a (patch) | |
tree | 5e0e0272d7163707500ba23d7867cecf40c32dda /tools/testing | |
parent | adb3b9b2a55056b028eed940437bee1c6ce476a0 (diff) | |
download | linux-9ea7c08eb6344bf46b272e999830b7617e1c3b5a.tar.xz |
drm/amd/display: Fix null pointer dereference for encoders
[ Upstream commit 60f39edd897ea134a4ddb789a6795681691c3183 ]
[Why]
Links which are dynamically assigned link encoders have their link
encoder set to NULL.
[How]
Check that a pointer to a link_encoder object is non-NULL before using
it.
Reviewed-by: Aric Cyr <aric.cyr@amd.com>
Reviewed-by: Meenakshikumar Somasundaram <meenakshikumar.somasundaram@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Jimmy Kizito <Jimmy.Kizito@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/testing')
0 files changed, 0 insertions, 0 deletions