提交 3b5130a6 编写于 作者: V 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: NVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221118105525.27254-3-ville.syrjala@linux.intel.comReviewed-by: NJani Nikula <jani.nikula@intel.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册