mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 19:13:47 +02:00
drm/i915/dvo: Don't leak connector state on DVO init failure
If we can't initialize the DVO encoder also free the connector state allocated by intel_connector_alloc(). Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20221118105525.27254-3-ville.syrjala@linux.intel.com Reviewed-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
parent
4b9cc6efeb
commit
3b5130a68d
|
|
@ -535,5 +535,5 @@ void intel_dvo_init(struct drm_i915_private *dev_priv)
|
|||
}
|
||||
|
||||
kfree(intel_dvo);
|
||||
kfree(intel_connector);
|
||||
intel_connector_free(intel_connector);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user