Blame SOURCES/0008-parse_proc_interrupts-fix-parsing-interrupt-counts.patch

214087
From 0a82dddbaf5702caded0d0d83a6eafaca743254d Mon Sep 17 00:00:00 2001
214087
From: Andreas Schwab <schwab@suse.de>
214087
Date: Mon, 27 Jun 2022 13:43:04 +0200
214087
Subject: [PATCH 08/14] parse_proc_interrupts: fix parsing interrupt counts
214087
214087
The name of an interrupt chip can start with a number, stop before it.
214087
---
214087
 procinterrupts.c | 2 +-
214087
 1 file changed, 1 insertion(+), 1 deletion(-)
214087
214087
diff --git a/procinterrupts.c b/procinterrupts.c
214087
index 57c8801..d90bf6d 100644
214087
--- a/procinterrupts.c
214087
+++ b/procinterrupts.c
214087
@@ -331,7 +331,7 @@ void parse_proc_interrupts(void)
214087
 		while (1) {
214087
 			uint64_t C;
214087
 			C = strtoull(c, &c2, 10);
214087
-			if (c==c2) /* end of numbers */
214087
+			if (c==c2 || !strchr(" \t", *c2)) /* end of numbers */
214087
 				break;
214087
 			count += C;
214087
 			c=c2;
214087
-- 
214087
2.33.1
214087