aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c
diff options
context:
space:
mode:
authorJoshua Aberback <joshua.aberback@amd.com>2024-10-28 17:12:22 -0400
committerAlex Deucher <alexander.deucher@amd.com>2024-11-20 09:39:36 -0500
commit27227a234c1487cb7a684615f0749c455218833a (patch)
tree8feb233fa6e26b406a05f3aa47e7ac35eea5ea6b /drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c
parentc33a93201ca07119de90e8c952fbdf65920ab55d (diff)
downloadlinux-27227a234c1487cb7a684615f0749c455218833a.tar.gz
linux-27227a234c1487cb7a684615f0749c455218833a.tar.bz2
linux-27227a234c1487cb7a684615f0749c455218833a.zip
drm/amd/display: Fix handling of plane refcount
[Why] The mechanism to backup and restore plane states doesn't maintain refcount, which can cause issues if the refcount of the plane changes in between backup and restore operations, such as memory leaks if the refcount was supposed to go down, or double frees / invalid memory accesses if the refcount was supposed to go up. [How] Cache and re-apply current refcount when restoring plane states. Cc: stable@vger.kernel.org Reviewed-by: Josip Pavic <josip.pavic@amd.com> Signed-off-by: Joshua Aberback <joshua.aberback@amd.com> Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c')
0 files changed, 0 insertions, 0 deletions