diff options
| author | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-10-01 11:56:28 -0400 |
|---|---|---|
| committer | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-10-01 11:56:28 -0400 |
| commit | 4a13527e87a7940c8614ad0c0f46847004529690 (patch) | |
| tree | 4a73dbf06def2efced2c5b4ccf7bc4e76b598c5d | |
| parent | a5398605bd7b6bd43871e092be3e7bed43354e4e (diff) | |
| download | open-iov-4a13527e87a7940c8614ad0c0f46847004529690.tar.gz open-iov-4a13527e87a7940c8614ad0c0f46847004529690.zip | |
gsp-phys: key the NOCAT summary on the truncated strings
| -rw-r--r-- | kernel/gsp_phys_booter.c | 6 |
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; |
