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:
Ville Syrjälä
2022-11-18 12:55:18 +02:00
parent 4b9cc6efeb
commit 3b5130a68d

View File

@@ -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);
}