summaryrefslogtreecommitdiff
path: root/irq.c
diff options
context:
space:
mode:
Diffstat (limited to 'irq.c')
-rw-r--r--irq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/irq.c b/irq.c
index 4132d19..2f7eafa 100644
--- a/irq.c
+++ b/irq.c
@@ -99,6 +99,8 @@ int device_set_irq_affinity_list(int irq, unsigned long from, unsigned long to)
int ret, fd;
char file[128], list[64];
+ if (unlikely(irq == 0))
+ return 0;
if (!nic_irq_stored) {
nic_irq = irq;
device_save_irq_affinity_list();