drm/amd/display: fix null pointer dereference
authorShirish S <shirish.s@amd.com>
Thu, 26 Oct 2017 06:17:42 +0000 (11:47 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 2 Nov 2017 17:00:58 +0000 (13:00 -0400)
commit55d9038b0c680ec90e3a7d2440e717ac6a2a8064
treebd73aeab97b1ca5dd274be056b584d50ad56a226
parentf5ba60fefa00ca789c4eb35df38b171d532b3155
drm/amd/display: fix null pointer dereference

While setting cursor position in case of mpo,
input_pixel_processor is not available for underlay,
hence add check of the same to avoid null pointer
access issue.

Signed-off-by: Shirish S <shirish.s@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_stream.c