Skip to content

Commit f917130

Browse files
mlankhorstjnikula
authored andcommitted
drm/i915: Flush power delayed put when connector init failed
When intel_dp_init_connector fails, some power wells used in dp aux communication may not be completely disabled yet. This may result in a null pointer dereference when icl_aux_pw_to_phy() is called from icl_combo_phy_aux_power_well_disable() after the encoder and connector are already freed. Signed-off-by: Maarten Lankhorst <[email protected]> Cc: Imre Deak <[email protected]> Cc: Jani Nikula <[email protected]> Acked-by: Imre Deak <[email protected]> Signed-off-by: Jani Nikula <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent c7b5abd commit f917130

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/i915/display/intel_dp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5719,6 +5719,7 @@ intel_dp_init_connector(struct intel_digital_port *dig_port,
57195719
return true;
57205720

57215721
fail:
5722+
intel_display_power_flush_work(dev_priv);
57225723
drm_connector_cleanup(connector);
57235724

57245725
return false;

0 commit comments

Comments
 (0)