From: Sebastian Reichel Date: Wed, 13 May 2020 18:55:57 +0000 (+0200) Subject: kobject: increase allowed number of uevent variables X-Git-Tag: v5.8-rc1~70^2~22 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=655078f5f5286fe0ab38e90c4695001a0e15e9dd;p=users%2Fjedix%2Flinux-maple.git 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 Reviewed-by: Emil Velikov Signed-off-by: Sebastian Reichel --- diff --git a/include/linux/kobject.h b/include/linux/kobject.h index e2ca0a292e210..75e822569e394 100644 --- a/include/linux/kobject.h +++ b/include/linux/kobject.h @@ -29,7 +29,7 @@ #include #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