diff options
| author | Tom Rix <[email protected]> | 2020-10-03 19:39:28 +0000 |
|---|---|---|
| committer | Daniel Vetter <[email protected]> | 2020-10-05 13:52:37 +0000 |
| commit | 4e19d51ca5b28a1d435a844c7b2a8e1b1b6fa237 (patch) | |
| tree | 814f4a73fe0a1f72619076cd2b76c91d2c95c910 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | drm/sched: Avoid infinite waits in the drm_sched_entity_destroy() path (diff) | |
| download | kernel-4e19d51ca5b28a1d435a844c7b2a8e1b1b6fa237.tar.gz kernel-4e19d51ca5b28a1d435a844c7b2a8e1b1b6fa237.zip | |
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 <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
