]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Check msg->size before starting aux transfer
authorShirish S <shirish.s@amd.com>
Tue, 13 Mar 2018 06:25:11 +0000 (11:55 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 14 Mar 2018 21:01:15 +0000 (16:01 -0500)
commitb8bdcf811e4e5cfd616ed856442bedf1bccdd3cf
tree19b26a5a02f520396692c26ec998e253deb6f095
parent8430b89bda0f4731d1b08bc603ab374b6752b044
drm/amd/display: Check msg->size before starting aux transfer

This patch adds an essential check related to the size of the
payload to be transferred via aux channel.

Without this check dal_ddc_service_read_dpcd_data() is fed with
inappropriate payload size leading to deadlocks.

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