]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Fix couple more inconsistent NULL checks in dc_resource
authorHarry Wentland <harry.wentland@amd.com>
Sat, 11 Nov 2017 01:35:27 +0000 (20:35 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Nov 2017 22:56:40 +0000 (17:56 -0500)
commitf609b8107f30c5c6bec4d9f183e923942beeddad
tree92bcea199c230ac03d2bff7a7cb9b9b40f61e135
parentf57bd498c158fde476a739ea4291897f1ae607e7
drm/amd/display: Fix couple more inconsistent NULL checks in dc_resource

Found by smatch:
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c:1001
acquire_free_pipe_for_stream() error: we previously assumed 'head_pipe'
could be null (see line 998)
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c:1808
dc_validate_global_state() error: we previously assumed 'new_ctx' could
be null (see line 1778)

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_resource.c