OSDN Git Service

drm/amd/display: fix index and union overwrite in compressor
authorRoman Li <Roman.Li@amd.com>
Wed, 19 Jul 2017 20:59:14 +0000 (16:59 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:15:22 +0000 (18:15 -0400)
commit72f0281d34b464121f9f6b75a2d7a2502055ec79
treed8067aad025b4ef63a6a9b5abd48e4a2eb150ee2
parent8ee65d7c93cb082d6c1ca584b7565c1cc08e7861
drm/amd/display: fix index and union overwrite in compressor

  Fixing 2 bugs in compressor:
- array out of bounds due to incorrect index
- compressor options always 0 due to union overwrite

Signed-off-by: Roman Li <Roman.Li@amd.com>
Reviewed-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce110/dce110_compressor.c
drivers/gpu/drm/amd/display/dc/dce112/dce112_compressor.c
drivers/gpu/drm/amd/display/dc/dce80/dce80_compressor.c