drm/amd/display: initialize dc_transfer_func->ctx
authorDavid Francis <David.Francis@amd.com>
Fri, 21 Sep 2018 18:36:17 +0000 (14:36 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Nov 2018 19:20:44 +0000 (14:20 -0500)
commitce8a805ae1768be16c62a541ce1b2d23e7b99124
treed7fcfa0f340535a4e1177b35a8b3f18695d434cc
parente1e8a020c6b88931d541ccd44043285ab93324d3
drm/amd/display: initialize dc_transfer_func->ctx

[Why]
dc_transfer_func structs were being passed around with a null
pointer, waiting for unsuspecting programmers to dereference it.

[How]
Initialize it

Signed-off-by: David Francis <David.Francis@amd.com>
Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
drivers/gpu/drm/amd/display/dc/core/dc_surface.c