Tom Rix 4e19d51ca5 drm/gma500: fix double free of gma_connector
clang static analysis reports this problem:

cdv_intel_dp.c:2101:2: warning: Attempt to free released memory
        kfree(gma_connector);
        ^~~~~~~~~~~~~~~~~~~~

In cdv_intel_dp_init() when the call to cdv_intel_edp_panel_vdd_off()
fails, the handler calls cdv_intel_dp_destroy(connector) which does
the first free of gma_connector. So adjust the goto label and skip
the second free.

Fixes: d112a8163f83 ("gma500/cdv: Add eDP support")
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20201003193928.18869-1-trix@redhat.com
2020-10-05 15:52:37 +02:00
..
2019-06-19 12:07:29 +02:00
2019-06-19 12:07:29 +02:00
2019-06-19 12:07:29 +02:00
2020-04-02 14:16:44 +02:00
2020-04-21 09:02:29 +02:00
2019-06-19 12:07:29 +02:00
2019-06-19 12:07:29 +02:00
2019-06-19 12:07:29 +02:00
2019-06-19 12:07:29 +02:00
2019-06-19 12:07:29 +02:00
2020-04-02 14:16:44 +02:00
2020-04-02 14:16:44 +02:00
2019-06-19 12:07:29 +02:00
2019-06-19 12:07:29 +02:00
2019-06-19 12:07:29 +02:00
2019-06-19 12:07:29 +02:00
2020-04-02 14:16:44 +02:00
2019-06-19 12:07:29 +02:00
2016-01-04 07:57:38 +01:00
2019-06-19 12:07:29 +02:00
2019-06-19 12:07:29 +02:00
2019-06-19 12:07:29 +02:00