Commit 3b5130a6 authored by Ville Syrjälä's avatar Ville Syrjälä

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: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221118105525.27254-3-ville.syrjala@linux.intel.comReviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
parent 4b9cc6ef
......@@ -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);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment