[TRIVIAL] irq_affinity_write_proc no longer writes garbage into irq_affinity[]

From: Rusty Trivial Russell
Date: Tue Sep 23 2003 - 22:31:39 EST


From: <adobriyan@xxxxxxx>


--- trivial-2.6.0-test5-bk10/arch/i386/kernel/irq.c.orig 2003-09-24 12:27:14.000000000 +1000
+++ trivial-2.6.0-test5-bk10/arch/i386/kernel/irq.c 2003-09-24 12:27:14.000000000 +1000
@@ -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
--
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?= <adobriyan@xxxxxxx>: [PATCH] irq_affinity_write_proc no longer writes garbage into irq_affinity[]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/