summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-06-11 00:05:56 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-06-11 00:08:29 +0200
commit42d1a29e7b7a55f39114115b9cb4814989ad5bf2 (patch)
tree4d79909ea5a3c2dcfe75da9798a28327555c5595
parent242b6c0faa6e521244c6e66745403522c3b707a9 (diff)
irq: do not process non-existant irq number of lo
Prevent IRQ affinity restore of lo device, since we do not collect it and since it doesn't have a IRQ number. This fixes a warning on trafgen and netsniff-ng when exiting. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
-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();