OSDN Git Service

drm/amd/display: Fix hubp check in set_cursor_position
authorHarry Wentland <harry.wentland@amd.com>
Sat, 11 Nov 2017 00:49:44 +0000 (19:49 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Nov 2017 22:56:26 +0000 (17:56 -0500)
commitb3fb2b4e21a995c4fa511627088bd55b88f6be11
tree97307c799c07261c2e53a8a46baa108e5cfe8c25
parentb001965d4eb5e4c0e3de7dc6dce1d45ca25232a7
drm/amd/display: Fix hubp check in set_cursor_position

Found by smatch:
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_stream.c:298
dc_stream_set_cursor_position() error: we previously assumed 'hubp'
could be null (see line 294)

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@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/core/dc_stream.c
drivers/gpu/drm/amd/display/dc/inc/hw/transform.h