]> git.baikalelectronics.ru Git - kernel.git/commit
kconfig: streamline_config.pl: check defined(ENV variable) before using it
authorRandy Dunlap <rdunlap@infradead.org>
Wed, 26 Aug 2020 21:21:43 +0000 (14:21 -0700)
committerMasahiro Yamada <masahiroy@kernel.org>
Thu, 3 Sep 2020 03:16:30 +0000 (12:16 +0900)
commit595ea958b7d991915b95d08187d52a4014e8a2b1
treed70bdad14355bd6d5ae9c6705eaea09ea6b07d04
parent118e09fe05fff492c6c8b1e7cb58bb8d3e6eed9e
kconfig: streamline_config.pl: check defined(ENV variable) before using it

A user reported:
'Use of uninitialized value $ENV{"LMC_KEEP"} in split at
 ./scripts/kconfig/streamline_config.pl line 596.'

so first check that $ENV{LMC_KEEP} is defined before trying
to use it.

Fixes: 33bd670dfcf2 ("streamline_config.pl: add LMC_KEEP to preserve some kconfigs")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/streamline_config.pl