summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorJoshua Aberback <joshua.aberback@amd.com>2024-10-28 17:12:22 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-09 10:41:15 +0100
commit8cb2f6793845f135b28361ba8e96901cae3e5790 (patch)
tree0e1177599ef9ee7c15f3aa06ab7583eb84d1ef64 /scripts/patch-kernel
parent08e5f8e1a24fb1f9ffa40a14dde335f05d9ece31 (diff)
downloadlinux-8cb2f6793845f135b28361ba8e96901cae3e5790.tar.gz
linux-8cb2f6793845f135b28361ba8e96901cae3e5790.tar.bz2
linux-8cb2f6793845f135b28361ba8e96901cae3e5790.zip
drm/amd/display: Fix handling of plane refcount
commit 27227a234c1487cb7a684615f0749c455218833a upstream. [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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions