Skip to contentSkip to conversation

irq_affinity_write_proc no longer writes garbage into irq_affinity[]

TRIVIAL Rusty Trivial Russell 1 participant 1 message Sep 24, 2003

lore
Share & tools
lore
#0 lore raw

From: <[email protected]>

arch/i386/kernel/irq.c renamed from arch/i386/kernel/irq.c.orig +2 -0
@@ -965,6 +965,8 @@
 		return -EIO;
 
 	err = parse_hex_value(buffer, count, &new_value);
+	if(err)
+		return err;
 
 	/*
 	 * Do not allow disabling IRQs completely - it's a too easy
Signature · 3 lines
  What is this? http://www.kernel.org/pub/linux/kernel/people/rusty/trivial/
  Don't blame me: the Monkey is driving
  File: =?koi8-r?Q?=22?=Alexey Dobriyan=?koi8-r?Q?=22=20?= <[email protected]>: [PATCH] irq_affinity_write_proc no longer writes garbage into irq_affinity[]