]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8c4f926df96233769f5991b5a291cc6c6e7ca3eb
tree97307c799c07261c2e53a8a46baa108e5cfe8c25
parent150d6031cc035109e0cfe68e56a418a06a1916d2
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