diff -Nru irqbalance-1.8.0/debian/changelog irqbalance-1.8.0/debian/changelog --- irqbalance-1.8.0/debian/changelog 2023-10-04 17:54:18.000000000 +0200 +++ irqbalance-1.8.0/debian/changelog 2023-10-16 11:22:18.000000000 +0200 @@ -1,3 +1,10 @@ +irqbalance (1.8.0-1ubuntu0.2) jammy; urgency=medium + + * d/p/lp2038300-parse_proc_interrupts-fix-parsing-interrupt-counts.patch + Fix parsing of GPIO irqchip on Tegra platform (Backport) (LP: #2038300) + + -- Nicolas Dechesne Mon, 16 Oct 2023 11:22:18 +0200 + irqbalance (1.8.0-1ubuntu0.1) jammy; urgency=medium * d/p/lp2038573-fix-unsigned-integer-subtraction-sign-overflow.patch: diff -Nru irqbalance-1.8.0/debian/patches/lp2038300-parse_proc_interrupts-fix-parsing-interrupt-counts.patch irqbalance-1.8.0/debian/patches/lp2038300-parse_proc_interrupts-fix-parsing-interrupt-counts.patch --- irqbalance-1.8.0/debian/patches/lp2038300-parse_proc_interrupts-fix-parsing-interrupt-counts.patch 1970-01-01 01:00:00.000000000 +0100 +++ irqbalance-1.8.0/debian/patches/lp2038300-parse_proc_interrupts-fix-parsing-interrupt-counts.patch 2023-10-16 11:22:18.000000000 +0200 @@ -0,0 +1,30 @@ +From 2608781612b3b2c1dfa5e805dc9697921a6a2e5b Mon Sep 17 00:00:00 2001 +From: Andreas Schwab +Date: Mon, 27 Jun 2022 13:43:04 +0200 +Subject: [PATCH] parse_proc_interrupts: fix parsing interrupt counts + +The name of an interrupt chip can start with a number, stop before it. + +Origin: upstream, https://github.com/Irqbalance/irqbalance/commit/0a82dddbaf5702caded0d0d83a6eafaca743254d +Reviewed-by: Nicolas Dechesne +Applied-Upstream: 1.9.1 +--- + procinterrupts.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/procinterrupts.c b/procinterrupts.c +index 854282f..e822825 100644 +--- a/procinterrupts.c ++++ b/procinterrupts.c +@@ -319,7 +319,7 @@ void parse_proc_interrupts(void) + while (1) { + uint64_t C; + C = strtoull(c, &c2, 10); +- if (c==c2) /* end of numbers */ ++ if (c==c2 || !strchr(" \t", *c2)) /* end of numbers */ + break; + count += C; + c=c2; +-- +2.39.2 + diff -Nru irqbalance-1.8.0/debian/patches/series irqbalance-1.8.0/debian/patches/series --- irqbalance-1.8.0/debian/patches/series 2023-10-04 17:54:18.000000000 +0200 +++ irqbalance-1.8.0/debian/patches/series 2023-10-16 11:22:18.000000000 +0200 @@ -1 +1,2 @@ lp2038573-fix-unsigned-integer-subtraction-sign-overflow.patch +lp2038300-parse_proc_interrupts-fix-parsing-interrupt-counts.patch