mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
disp: msm: dp: Fix dp mst vcpi slot management for inactive crtcs
For crtcs attached to mst connectors, vcpi slots are being allocated whether or not that crtc is currently active. This will cause leaks during lastclose when the crtc is inactive, because the slots will get allocated, but never freed. Check if the crtc state is active before proceeding to allocate vcpi slots for that mst connector. CRs-Fixed: 2520907 Change-Id: I359738868e9bc72163f9e33204ff6cd7f0143b09 Signed-off-by: Xiaowen Wu <wxiaowen@codeaurora.org> Signed-off-by: Fuad Hossain <fhossain@codeaurora.org>
This commit is contained in:
parent
8babba1d11
commit
e8bd1de8ba
1 changed files with 1 additions and 1 deletions
|
|
@ -1451,7 +1451,7 @@ mode_set:
|
|||
|
||||
crtc_state = drm_atomic_get_new_crtc_state(state, new_conn_state->crtc);
|
||||
|
||||
if (drm_atomic_crtc_needs_modeset(crtc_state)) {
|
||||
if (drm_atomic_crtc_needs_modeset(crtc_state) && crtc_state->active) {
|
||||
c_conn = to_sde_connector(connector);
|
||||
|
||||
dp_display->convert_to_dp_mode(dp_display, c_conn->drv_panel,
|
||||
|
|
|
|||
Loading…
Reference in a new issue