]> git.ipfire.org Git - thirdparty/kernel/linux.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)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 16 Dec 2025 18:28:19 +0000 (13:28 -0500)
commit6e7143e5e6e21f9d5572e0390f7089e6d53edf3c
treef500a5f3ab68a5bae29dddf561eee974ce56eae5
parent89745c19c66824e818b970972550c67fc271ec07
drm/amdkfd: Fix improper NULL termination of queue restore SMI event string

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>
drivers/gpu/drm/amd/amdkfd/kfd_smi_events.c