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

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