]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
kobject: increase allowed number of uevent variables
authorSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 13 May 2020 18:55:57 +0000 (20:55 +0200)
committerSebastian Reichel <sre@kernel.org>
Thu, 28 May 2020 17:22:04 +0000 (19:22 +0200)
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 <gregkh@linuxfoundation.org>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
include/linux/kobject.h

index e2ca0a292e2106d6367c0613e776fdcf1751fc7a..75e822569e394f2690af79bd0c4d681bd2126a01 100644 (file)
@@ -29,7 +29,7 @@
 #include <linux/uidgid.h>
 
 #define UEVENT_HELPER_PATH_LEN         256
-#define UEVENT_NUM_ENVP                        32      /* number of env pointers */
+#define UEVENT_NUM_ENVP                        64      /* number of env pointers */
 #define UEVENT_BUFFER_SIZE             2048    /* buffer for the variables */
 
 #ifdef CONFIG_UEVENT_HELPER