summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/dc_stream.h
diff options
context:
space:
mode:
authorLeo (Sunpeng) Li <sunpeng.li@amd.com>2018-02-20 23:46:09 +0300
committerAlex Deucher <alexander.deucher@amd.com>2018-03-08 00:28:22 +0300
commit9fe8f03bc0227fb573cc3e5b99eb34e19e405ab6 (patch)
tree23879293979f14cb9ba2e822a352499b7cb2044d /drivers/gpu/drm/amd/display/dc/dc_stream.h
parentc0e463d3a02a54bdb272f9e52c5942348234c40e (diff)
downloadlinux-9fe8f03bc0227fb573cc3e5b99eb34e19e405ab6.tar.xz
drm/amd/display: Fix memleaks when atomic check fails.
While checking plane states for updates during atomic check, we create dc_plane_states in preparation. These dc states should be freed if something errors. Although the input transfer function is also freed by dc_plane_state_release(), we should free it (on error) under the same scope as where it is created. Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com> Reviewed-by: Harry Wentland <Harry.Wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dc_stream.h')
0 files changed, 0 insertions, 0 deletions