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

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