Skip to content

Commit 655078f

Browse files
committed
kobject: increase allowed number of uevent variables
SBS battery driver exposes 32 power supply properties now, which will result in uevent failure on (un)plugging the battery. Other drivers (e.g. bq27xxx) are also coming close to this limit, so increase it. Acked-by: Greg Kroah-Hartman <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
1 parent 2e9bcac commit 655078f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/kobject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include <linux/uidgid.h>
3030

3131
#define UEVENT_HELPER_PATH_LEN 256
32-
#define UEVENT_NUM_ENVP 32 /* number of env pointers */
32+
#define UEVENT_NUM_ENVP 64 /* number of env pointers */
3333
#define UEVENT_BUFFER_SIZE 2048 /* buffer for the variables */
3434

3535
#ifdef CONFIG_UEVENT_HELPER

0 commit comments

Comments
 (0)