From 42d1a29e7b7a55f39114115b9cb4814989ad5bf2 Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Tue, 11 Jun 2013 00:05:56 +0200 Subject: 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 --- irq.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'irq.c') 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(); -- cgit v1.2.3-54-g00ecf '>index : net-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
ModeNameSize