irqbalance/irqbalance-1.9.1-fix-uninitialized-variable.patch

26 lines
747 B
Diff
Raw Normal View History

2022-10-19 17:17:31 +00:00
From 014765d947b3624db9d5591299ea315607733c3c Mon Sep 17 00:00:00 2001
From: Neil Horman <neil.horman@privafy.com>
Date: Wed, 19 Oct 2022 08:10:05 -0400
Subject: [PATCH] Fix uninitialized variable
Resolves https://github.com/Irqbalance/irqbalance/pull/240#issuecomment-1283741093
Signed-off-by: Neil Horman <nhorman@gmail.com>
---
classify.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/classify.c b/classify.c
index 3858754..4ea4b44 100644
--- a/classify.c
+++ b/classify.c
@@ -646,7 +646,7 @@ static void build_one_dev_entry(const char *dirname, int build_irq)
struct dirent *entry;
DIR *msidir;
int irqnum;
- struct irq_info hint;
+ struct irq_info hint = {0};
char path[PATH_MAX];
char devpath[PATH_MAX];