diff options
author | Julian Parkin <[email protected]> | 2019-06-25 14:55:53 -0400 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2019-07-18 14:17:20 -0500 |
commit | 0905f32977268149f06e3ce6ea4bd6d374dd891f (patch) | |
tree | f19359bd97a333181dfe16e4c69497647730348e /lib/mpi/mpi-internal.h | |
parent | 67fd6c0d2de8e51e84ff3fa6e68bbd524f823e49 (diff) |
drm/amd/display: Fix dc_create failure handling and 666 color depths
[Why]
It is possible (but very unlikely) that constructing dc fails
before current_state is created.
We support 666 color depth in some scenarios, but this
isn't handled in get_norm_pix_clk. It uses exactly the
same pixel clock as the 888 case.
[How]
Check for non null current_state before destructing.
Add case for 666 color depth to get_norm_pix_clk to
avoid assertion.
Signed-off-by: Julian Parkin <[email protected]>
Reviewed-by: Charlene Liu <[email protected]>
Acked-by: Leo Li <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions