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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Jul 2020 07:34:27 +0000 (09:34 +0200)
commitadfe5ec9ac3ff13e9dabe42216fb34a9e9c19738
tree4c17210bb3b4f4e587f8d356ba674081013d4031
parent7c7df36732772d4f68e0ed50667ced18440bb2ad
drm/amd/display: handle failed allocation during stream construction

commit be73e608ae2711dc8a1ab8b9549d9e348061b2ee upstream.

[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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/display/dc/core/dc_stream.c