]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
amdgpu/dc: handle allocation failures in dc_commit_planes_to_stream.
authorDave Airlie <airlied@redhat.com>
Mon, 6 Nov 2017 19:21:18 +0000 (05:21 +1000)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Nov 2017 21:22:08 +0000 (16:22 -0500)
commitf7dbc385c15084d6e11192e8a5dd901eb96dbec2
treef502890a757d80b5dc34036650d0e59914ce3672
parentbf5563ede9f254fba083c6b56e4ca8b836babb1d
amdgpu/dc: handle allocation failures in dc_commit_planes_to_stream.

Reported-by smatch:
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:966 dc_commit_planes_to_stream() error: potential null dereference 'flip_addr'.  (kcalloc returns null)
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:968 dc_commit_planes_to_stream() error: potential null dereference 'plane_info'.  (kcalloc returns null)
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:978 dc_commit_planes_to_stream() error: potential null dereference 'scaling_info'.  (kcalloc returns null)

Reviewed-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c