summaryrefslogtreecommitdiffstats
path: root/kernel/gsp_phys_booter.c
diff options
context:
space:
mode:
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;