summaryrefslogtreecommitdiffstats
path: root/kernel/gsp_phys_booter.c
diff options
context:
space:
mode:
authorArthur Hanson Rasmusson <arthur@vgpu.io>2026-10-01 11:56:28 -0400
committerArthur Hanson Rasmusson <arthur@vgpu.io>2026-10-01 11:56:28 -0400
commit4a13527e87a7940c8614ad0c0f46847004529690 (patch)
tree4a73dbf06def2efced2c5b4ccf7bc4e76b598c5d /kernel/gsp_phys_booter.c
parenta5398605bd7b6bd43871e092be3e7bed43354e4e (diff)
downloadopen-iov-4a13527e87a7940c8614ad0c0f46847004529690.tar.gz
open-iov-4a13527e87a7940c8614ad0c0f46847004529690.zip
gsp-phys: key the NOCAT summary on the truncated strings
Diffstat (limited to 'kernel/gsp_phys_booter.c')
-rw-r--r--kernel/gsp_phys_booter.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/kernel/gsp_phys_booter.c b/kernel/gsp_phys_booter.c
index 19abbce..ad37831 100644
--- a/kernel/gsp_phys_booter.c
+++ b/kernel/gsp_phys_booter.c
@@ -1985,8 +1985,10 @@ static void gsp_phys_nocat_accumulate(u8 rec_type, u64 error_code,
slot->error_code == error_code &&
slot->subsystem == subsystem &&
slot->bugcheck == bugcheck &&
- strcmp(slot->source, source) == 0 &&
- strcmp(slot->faulting_engine, faulting_engine) == 0) {
+ strncmp(slot->source, source,
+ GSP_PHYS_NOCAT_SUMMARY_STR - 1) == 0 &&
+ strncmp(slot->faulting_engine, faulting_engine,
+ GSP_PHYS_NOCAT_SUMMARY_STR - 1) == 0) {
slot->count++;
slot->last_seq = seq;
return;