diff options
| author | Ville Syrjälä <[email protected]> | 2022-11-18 12:55:18 +0200 |
|---|---|---|
| committer | Ville Syrjälä <[email protected]> | 2022-11-19 11:07:33 +0200 |
| commit | 3b5130a68df1a513713b027d03125ba11ebc2975 (patch) | |
| tree | 6c83f0e2cc23b730aa9b9da60ac14f9cb9dd9902 | |
| parent | 4b9cc6efeb0684912d518e9953a1d493b2b89a02 (diff) | |
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ä <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Jani Nikula <[email protected]>
| -rw-r--r-- | drivers/gpu/drm/i915/display/intel_dvo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_dvo.c b/drivers/gpu/drm/i915/display/intel_dvo.c index 94dcc43876c9..8859e400b860 100644 --- a/drivers/gpu/drm/i915/display/intel_dvo.c +++ b/drivers/gpu/drm/i915/display/intel_dvo.c @@ -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); } |