]> Gentwo Git Trees - linux/.git/commit
drm/amd/display: Persist stream refcount through restore
authorJoshua Aberback <joshua.aberback@amd.com>
Thu, 23 Oct 2025 20:43:56 +0000 (16:43 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 4 Nov 2025 16:53:20 +0000 (11:53 -0500)
commitb0ba3108e3f8b20d8631ca4475a1a6d171973651
tree6afcf213646303de8a44ef3486a00d68966b24f9
parent717b836c27d9a4d5bcaae74fa83f7b3312d45620
drm/amd/display: Persist stream refcount through restore

[Why & How]
Overwriting the refcount on stream restore can lead to double-free errors
or memory leaks if an unbalanced number of retains and releases occurs
between a backup and restore.

Reviewed-by: Dillon Varone <dillon.varone@amd.com>
Signed-off-by: Joshua Aberback <joshua.aberback@amd.com>
Signed-off-by: Ray Wu <ray.wu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c