]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdkfd: Fix improper NULL termination of queue restore SMI event string
authorBrian Kocoloski <brian.kocoloski@amd.com>
Thu, 20 Nov 2025 18:57:19 +0000 (13:57 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jan 2026 15:35:32 +0000 (16:35 +0100)
commit9fd86747daa6c607c33a5b2dfedc2f430d36e4af
tree9f25963d282791d3e36b1ddc6882bc2af4ebdd21
parent6fcfcf792ce8a46c95317ea0099aff5290dda9a6
drm/amdkfd: Fix improper NULL termination of queue restore SMI event string

[ Upstream commit 969faea4e9d01787c58bab4d945f7ad82dad222d ]

Pass character "0" rather than NULL terminator to properly format
queue restoration SMI events. Currently, the NULL terminator precedes
the newline character that is intended to delineate separate events
in the SMI event buffer, which can break userspace parsers.

Signed-off-by: Brian Kocoloski <brian.kocoloski@amd.com>
Reviewed-by: Philip Yang <Philip.Yang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 6e7143e5e6e21f9d5572e0390f7089e6d53edf3c)
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdkfd/kfd_smi_events.c