]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: handle failed allocation during stream construction
authorJosip Pavic <Josip.Pavic@amd.com>
Mon, 6 Jul 2020 19:43:39 +0000 (15:43 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 14 Jul 2020 18:37:59 +0000 (14:37 -0400)
commit6c9ca86561c57d04fd8b805bac8d2e3d78970ec3
treec8acc7b397c56e53623113680055e7065de6c524
parente9732b24e91bf29b26daddebfa192e3abd4d2b4e
drm/amd/display: handle failed allocation during stream construction

[Why]
Failing to allocate a transfer function during stream construction leads
to a null pointer dereference

[How]
Handle the failed allocation by failing the stream construction

Cc: stable@vger.kernel.org
Signed-off-by: Josip Pavic <Josip.Pavic@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_stream.c