Skip to content

Commit 02680ef

Browse files
Harry Wentlandalexdeucher
authored andcommitted
drm/amd/display: Stop leaking planes
[Why] drm_plane_cleanup does not free the plane. [How] Call drm_primary_helper_destroy which will also free the plane. Signed-off-by: Harry Wentland <harry.wentland@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 8ed4ec3 commit 02680ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3301,7 +3301,7 @@ void dm_drm_plane_destroy_state(struct drm_plane *plane,
33013301
static const struct drm_plane_funcs dm_plane_funcs = {
33023302
.update_plane = drm_atomic_helper_update_plane,
33033303
.disable_plane = drm_atomic_helper_disable_plane,
3304-
.destroy = drm_plane_cleanup,
3304+
.destroy = drm_primary_helper_destroy,
33053305
.reset = dm_drm_plane_reset,
33063306
.atomic_duplicate_state = dm_drm_plane_duplicate_state,
33073307
.atomic_destroy_state = dm_drm_plane_destroy_state,

0 commit comments

Comments
 (0)