]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] Fix uevent buffer overflow in input layer
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 24 Jan 2006 23:21:32 +0000 (10:21 +1100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 6 Feb 2006 20:17:18 +0000 (12:17 -0800)
The buffer used for kobject uevent is too small for some of the events generated
by the input layer. Bump it to 2k.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
lib/kobject_uevent.c

index f56e27ae9d528c5a33bf745532ab366e0c7aa005..1b1985c136ec9a00862845f0f516656b2e84b8b0 100644 (file)
@@ -22,7 +22,7 @@
 #include <linux/kobject.h>
 #include <net/sock.h>
 
-#define BUFFER_SIZE    1024    /* buffer for the variables */
+#define BUFFER_SIZE    2048    /* buffer for the variables */
 #define NUM_ENVP       32      /* number of env pointers */
 
 #if defined(CONFIG_HOTPLUG) && defined(CONFIG_NET)