30 lines
1010 B
Diff
30 lines
1010 B
Diff
From 5cb5795d8be047b4bc23ccf47ac3086ac98f1b06 Mon Sep 17 00:00:00 2001
|
|
From: liuchao173 <55137861+liuchao173@users.noreply.github.com>
|
|
Date: Tue, 10 Sep 2019 18:46:24 +0800
|
|
Subject: [PATCH 12/53] change path to devpath
|
|
|
|
keep the parameters 'path' of check_for_irq_ban function consistent with line 699.
|
|
In check_for_irq_ban,
|
|
sprintf(cmd, "%s %s %d > /dev/null",banscript, path, irq);
|
|
the banscript is unique, so i think the path should keep consistent.
|
|
---
|
|
classify.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/classify.c b/classify.c
|
|
index f40ea99..9b0177d 100644
|
|
--- a/classify.c
|
|
+++ b/classify.c
|
|
@@ -693,7 +693,7 @@ static void build_one_dev_entry(const char *dirname, GList *tmp_irqs)
|
|
if (new)
|
|
goto done;
|
|
get_irq_user_policy(devpath, irqnum, &pol);
|
|
- if ((pol.ban == 1) || (check_for_irq_ban(path, irqnum, tmp_irqs))) {
|
|
+ if ((pol.ban == 1) || (check_for_irq_ban(devpath, irqnum, tmp_irqs))) {
|
|
add_banned_irq(irqnum, &banned_irqs);
|
|
goto done;
|
|
}
|
|
--
|
|
2.23.0
|
|
|