Skip to content

Commit

Permalink
[PATCH] Fix uevent buffer overflow in input layer
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
ozbenh authored and gregkh committed Feb 6, 2006
1 parent 9c1da3c commit d87499e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kobject_uevent.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d87499e

Please sign in to comment.