]> git.baikalelectronics.ru Git - kernel.git/commit
kconfig: don't crash on NULL expressions in expr_eq()
authorThomas Hebb <tommyhebb@gmail.com>
Mon, 9 Dec 2019 08:19:17 +0000 (00:19 -0800)
committerMasahiro Yamada <masahiroy@kernel.org>
Tue, 17 Dec 2019 10:21:07 +0000 (19:21 +0900)
commitd0747e621748ae47b57644c7b0a7644e39e6325f
tree8e603d55c69699f5509d5df6d053ab06b4342f76
parent2c22f7842213337176214189d108a0ec6ba51385
kconfig: don't crash on NULL expressions in expr_eq()

NULL expressions are taken to always be true, as implemented by the
expr_is_yes() macro and by several other functions in expr.c. As such,
they ought to be valid inputs to expr_eq(), which compares two
expressions.

Signed-off-by: Thomas Hebb <tommyhebb@gmail.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/expr.c