drm/amdkfd: Fix improper NULL termination of queue restore SMI event string
Subsystems (3)
PATCH 1/1 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.
--- drivers/gpu/drm/amd/amdkfd/kfd_smi_events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdkfd/kfd_smi_events.c +1 -1
@@ -312,7 +312,7 @@ void kfd_smi_event_queue_restore(struct kfd_node *node, pid_t pid) {kfd_smi_event_add (pid, node,KFD_SMI_EVENT_QUEUE_RESTORE ,KFD_EVENT_FMT_QUEUE_RESTORE (ktime_get_boottime_ns (), pid, - node->id,0 )); + node->id,'0' )); }void kfd_smi_event_queue_restore_rescheduled (struct mm_struct *mm)
Signature · 1 line
2.39.5