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)
commit4462282a7253e3663790f8ab092a4107d905bd76
treec8acc7b397c56e53623113680055e7065de6c524
parent04111850cf5640131d20ce5194be735f75ed8f01
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